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