- src/lib.rs module layout + thin main.rs dispatcher; CLI owns browse/export/verify - core_client: MARQDO_BIN only, explicit argv (no shell), 0700 scratch dirs, wall-clock timeout killing the whole process group, version/protocol negotiation - project/source_map: canonical path boundary, SafeRelativePath, exact UTF-8 byte <-> line/column <-> UTF-16 mapping, SHA-256 of exact bytes - stable view.* error codes with 0/1/2 exit classes; BindDenied for non-loopback - verify use case: Analysis v2 schema/profile/root_id/source_digest binding, no execution - tool.json + tools/package.sh + tools/install-smoke.sh; frozen-CLI install smoke PASS - contract tests with a real fake-core executable + architectural coupling gates - COMPATIBILITY/CHANGELOG/STATUS updated
16 lines
422 B
Rust
16 lines
422 B
Rust
//! Thin binary entry point: parse arguments, dispatch through the library,
|
|
//! print one stable diagnostic and exit with the View-owned exit code.
|
|
|
|
use clap::Parser;
|
|
|
|
fn main() {
|
|
let cli = marqdo_view::Cli::parse();
|
|
match marqdo_view::run(cli) {
|
|
Ok(code) => std::process::exit(code),
|
|
Err(err) => {
|
|
eprintln!("{err}");
|
|
std::process::exit(err.exit_code());
|
|
}
|
|
}
|
|
}
|