Method
set_state
tests/test_context.py:418–421
· tests/test_context.py::ExitingOption.set_state
(self, ctx: Context, param: Parameter, value: str)
Source from the content-addressed store, hash-verified
| 416 | |
| 417 | class ExitingOption(NonExitingOption): |
| 418 | def set_state(self, ctx: Context, param: Parameter, value: str) -> str: |
| 419 | value = super().set_state(ctx, param, value) |
| 420 | ctx.exit() |
| 421 | return value |
| 422 | |
| 423 | @click.command() |
| 424 | @click.option(class="st">"--option-with-callback", is_eager=True, cls=NonExitingOption) |
Callers
nothing calls this directly
Tested by
no test coverage detected