Skip to content

Core CLI structure and commands (review, scan, init, auth, hook) #1

Description

@ajianaz

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

  • All subcommands parse and validate arguments
  • Help text is clear and complete
  • Errors are actionable and human-readable
  • Binary is cora (not cora-cli)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions