MCPcopy
hub / github.com/pallets/click / callback

Function callback

src/click/decorators.py:389–391  ·  view source on GitHub ↗
(ctx: Context, param: Parameter, value: bool)

Source from the content-addressed store, hash-verified

387 """
388
389 def callback(ctx: Context, param: Parameter, value: bool) -> None:
390 if not value:
391 ctx.abort()
392
393 if not param_decls:
394 param_decls = ("--yes",)

Callers 1

invokeMethod · 0.70

Calls 4

abortMethod · 0.80
find_rootMethod · 0.80
exitMethod · 0.80
echoFunction · 0.70

Tested by

no test coverage detected