Core CLI Structure
Implement the main CLI structure using clap with the following subcommands:
Subcommands
cora review — review git diffs (unstaged, staged, branch, stdin)
cora scan <path> — scan files/directories for review
cora init — create .cora.yaml config template
cora auth set/show — manage API key configuration
cora hook install/remove — git pre-commit hook management
Requirements
- Use
clap with derive macros
- Graceful error handling with
anyhow
- Colored, human-friendly terminal output
- Streaming status indicators during LLM calls
Acceptance Criteria
Core CLI Structure
Implement the main CLI structure using clap with the following subcommands:
Subcommands
cora review— review git diffs (unstaged, staged, branch, stdin)cora scan <path>— scan files/directories for reviewcora init— create.cora.yamlconfig templatecora auth set/show— manage API key configurationcora hook install/remove— git pre-commit hook managementRequirements
clapwith derive macrosanyhowAcceptance Criteria
cora(notcora-cli)