Expand description
Runtime CLI library entrypoint. Exposes run(argv) so integration
tests can drive the binary in-process and so the binary stays a
one-liner.
Milestone 30. The CLI speaks the runtime GraphQL API via a thin
reqwest::blocking client. Auth lives in ~/.config/runtime/config.json
and is provisioned by runtime auth login.
Modules§
- cli
- clap derive surface for
runtime. Top-level subcommands map 1:1 to the modules undercommands/. - client
- Thin GraphQL client. Uses
reqwest::blockingso the CLI stays synchronous end-to-end — no tokio runtime, no async noise in the subcommand modules. - commands
- config
- On-disk config:
~/.config/runtime/config.json. - editor
$EDITORintegration for commands that compose a body (issue / PR / release create). Writes a temp file withprefill, launches the editor, then reads the file back. Empty contents ⇒ abort, matchinggh’s behavior.- output
- Output formatting helpers. Three modes:
Functions§
- run
- Parse
argvand dispatch to the appropriate subcommand. ReturnsOk(())on success; subcommands surface errors viaanyhow.