mirror of
https://github.com/NickCrew/Claude-Cortex.git
synced 2026-09-14 20:17:11 +08:00
1.2 KiB
1.2 KiB
Manpage Generation
Manpages for cortex are auto-generated from the CLI argparse definitions.
📄 Generated Files
cortex.1- Main command referencecortex-tui.1- TUI subcommand referencecortex-workflow.1- Workflow subcommand reference
🔄 Regeneration
Manpages are automatically regenerated:
- During installation -
just installor./scripts/deprecated/install.sh - Manual generation -
just generate-manpagesorpython3 scripts/generate-manpages.py - Pre-commit hook - When
claude_ctx_py/cli.pyis modified (optional)
🔧 Setup Pre-commit Hook
To automatically regenerate manpages when CLI changes:
git config core.hooksPath .githooks
📝 Editing
Do NOT manually edit the .1 files - they will be overwritten.
Instead:
- Update CLI help text in
claude_ctx_py/cli.py - Modify the generator in
scripts/generate-manpages.py - Run
just generate-manpagesto regenerate
🧪 Testing
View generated manpages:
# After generation
man docs/reference/cortex.1
# After installation
man cortex
📅 Version & Date
- Version: Extracted from
pyproject.toml - Date: Set to generation date (YYYY-MM-DD format)