Flags every command accepts (Effect's GlobalFlag).
An Action does something instead of running the command (--help,
--version, --wizard, --completions); a Setting is a value
the runner provides to the handler as a service (--log-level, or your
own: subclass Setting). built_ins are the defaults, which
cli_config.layer(built_ins=...) replaces.
Re-exports#
- From
pyfect.cli:Action,HandlerContext,Setting
Values#
| Attribute | Type | Description |
|---|---|---|
Help | Action[bool] | |
Version | Action[bool] | |
Wizard | Action[bool] |
|
Completions | Action[completions.Shell | None] | |
built_ins | tuple[GlobalFlag, ...] |
Types#
| Type | Definition | Description |
|---|---|---|
GlobalFlag | type GlobalFlag = Action[Any] | type[Setting[Any]] |