introspect_cappa
Class info¶
🛈 DocStrings¶
Introspection module for cappa CLI applications.
get_info
¶
get_info(cls: type[Any], command: str | None = None) -> CommandInfo
Extract CLI information from a cappa command class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cls
|
type[Any]
|
The (dataclass-like) command class to analyze |
required |
command
|
str | None
|
The command to get info for (supports dot notation for subcommands). |
None
|