introspect_click
Class info¶
🛈 DocStrings¶
get_info
¶
get_info(instance: Command, command: str | None = None) -> CommandInfo
Return a CommandInfo object for command of given click Command / Group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
instance
|
Command
|
A click |
required |
command
|
str | None
|
The command to get info for (supports dot notation for subcommands). |
None
|
Source code in src/clinspector/introspect/introspect_click.py
parse
¶
parse(command: Command, parent: Context | None = None) -> CommandInfo
Get a CommandInfo dataclass for given click Command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command
|
Command
|
The click |
required |
parent
|
Context | None
|
The optional parent context |
None
|