markdown
Class info¶
🛈 DocStrings¶
get_cmd_markdown
¶
get_cmd_markdown(
instance: Any, command: str | None = None, include_subcommands: bool = False
) -> str
Generate markdown documentation for a command.
Hidden parameters and subcommands are left out.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
instance
|
Any
|
A CLI app instance (Typer, Click, etc.) |
required |
command
|
str | None
|
Optional specific command to document (supports dot notation) |
None
|
include_subcommands
|
bool
|
Whether to include documentation for (nested) subcommands |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted markdown string with command documentation |