Skip to content

Task 2.5: Extract cora-cli into lib + bin (for GitHub App backend reuse) #131

@ajianaz

Description

@ajianaz

Split cora-cli into library (reusable review engine) + binary (CLI interface). This is needed so the GitHub App backend can import cora as a library instead of shelling out to the binary.

Checklist

  • Create src/lib.rs with public exports
  • Move CLI entry point to src/bin/cora.rs
  • Export from lib: review::run(), scanner::scan_files(), types::*, config::*
  • Ensure all existing cargo test tests still pass
  • Ensure cargo build --release still produces same binary
  • Verify cargo install still works
  • Verify clippy and fmt still clean
  • Update Cargo.toml if needed (lib vs bin sections)

Part Of: #118, #120

Metadata

Metadata

Assignees

No one assigned

    Labels

    migration:appGitHub App Rust backendmigration:v2CodeCora V2 Migration — all tracking issuesphase:week2W2 Website + GitHub App

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions