Markdown Output for gira describe
¶
The gira describe
command now supports markdown output format for better documentation generation and human readability.
Basic Usage¶
Generate markdown documentation¶
Generate documentation for a specific command¶
Generate documentation for a command group¶
Options¶
Format Options¶
--format markdown
- Output in markdown format instead of JSON--render
- Render the markdown with Rich formatting in the terminal--full
- Generate full documentation with detailed command descriptions--examples
/--no-examples
- Include or exclude command examples (default: include)
Examples¶
Basic markdown output¶
This generates a markdown overview of all Gira commands, organized by: - Core commands (standalone commands) - Command groups (commands with subcommands)
Rendered markdown in terminal¶
Uses Rich to display formatted markdown directly in the terminal with: - Bold headers - Bullet points - Code blocks - Tables
Full documentation¶
Generates comprehensive documentation including: - Table of contents with anchor links - Detailed command sections with usage, arguments, options, and examples - Global options reference
Specific command documentation¶
Outputs detailed documentation for a single command including: - Command description - Usage syntax - Arguments with types and descriptions - Options table with types, descriptions, and defaults - Command examples
Command group documentation¶
Shows the command group description and lists all subcommands.
Use Cases¶
Generate CLI reference documentation¶
Create command-specific help files¶
Quick command reference in terminal¶
Generate documentation without examples¶
Output Structure¶
The markdown output follows a consistent structure:
For the application:¶
# GIRA CLI Reference
[Description]
## Commands
### Core Commands
- `command` - description
### Command Groups
#### group_name
[Group description]
- `subcommand` - description
## Global Options
[Options table]
For individual commands:¶
Arguments:
- ARG
(required) - description
Options: | Option | Type | Description | Default | |--------|------|-------------|---------| | --opt | type | description | default |
Examples:
```Integration with Documentation Tools¶
The markdown output is designed to be compatible with:
- GitHub/GitLab documentation
- MkDocs and other static site generators
- IDE markdown preview
- Direct viewing in terminal with --render
Comparison with JSON Output¶
While JSON output is optimized for programmatic use and AI agents: - No formatting by default - Machine-readable structure - Detailed type information
Markdown output is optimized for human readability: - Formatted text with headers and tables - Usage examples - Natural language descriptions - Can be rendered directly in terminal