approvedcompleteApache-2.0

The statecraft binary: crate scaffold, config, CI

002-crate-scaffold

The Rust crate for the single binary named statecraft: clap-based command tree, layered configuration (flags > env > config file), structured output discipline (human tables on TTY, JSON with --output json), and a CI workflow (fmt, clippy -D warnings, test, release build). No network calls yet; spec 003 adds auth and the API client. After this spec, `cargo install --path .` yields a binary whose skeleton every later verb hangs off.

Establishes
  • Cargo.toml
  • Cargo.lock
  • src/ (directory)
  • .github/workflows/ci.yml
Sections
  • 002: Crate scaffold
  • 1. Territory
  • 2. Behavior
  • 3. Acceptance
  • 4. Out of scope
Source
specs/002-crate-scaffold/spec.md @ ac2fa199be29as of 2026-07-17 ยท shard 8576aef9f1f5