Skip to main content

Crate cordance_cli

Crate cordance_cli 

Source
Expand description

Cordance CLI — library entry.

All dispatch logic for the cordance binary lives here. The companion src/main.rs is a thin shim that calls run. The umbrella package cordance also calls into run so cargo install cordance and cargo install cordance-cli install the same binary.

§Subcommands

  • cordance init — write cordance.toml.
  • cordance scan — emit a Markdown report at .cordance/scan-report.md.
  • cordance pack — compile the pack, emit every target.
  • cordance advise — deterministic doctrine checks (no LLM).
  • cordance doctrine <topic> — query engineering-doctrine.
  • cordance cortex push — emit a cordance-cortex-receipt-v1-candidate.json.
  • cordance check — drift detection vs .cordance/sources.lock.
  • cordance explain <rule> — provenance of a generated rule.
  • cordance watch — re-run pack on file changes.
  • cordance serve — start the JSON-RPC MCP server (stdio).
  • cordance doctor — pre-flight checks.
  • cordance completions <shell> — emit shell completion scripts.

Functions§

run
Run the cordance CLI: parse argv, install tracing, dispatch the subcommand, and return a process ExitCode.