Expand description
CLI surface constants shared by the main dispatcher and the snapshot tests.
CLI_VERSION MUST equal env!("CARGO_PKG_VERSION") — build.rs
enforces this at compile time so cosmetic edits to Cargo.toml can
never desync the Homebrew / Scoop contract documented in
docs/CLI.md. mkit version MUST emit exactly "mkit <X.Y.Z>\n".
Constants§
- CLI_
VERSION - Version string rendered by
mkit version. Pinned to the package version at compile time viaenv!. - COMMIT_
EDITMSG_ TEMPLATE - Template written into
.mkit/COMMIT_EDITMSGbefore spawning$EDITOR. Pinned by snapshot tests. - HELP_
TEXT - Full help text for
mkit --help/mkit help/mkit(with no args). Pinned by snapshot tests so downstream tooling that greps the binary output sees a stable surface.
Functions§
- strip_
comments_ and_ trim - Strip lines beginning with
#(after any leading whitespace) and trim surrounding whitespace. Used bymkit commitwhen.mkit/COMMIT_EDITMSGis edited via$EDITOR.