Expand description
Every name the tool says about itself, in one place (ADR-0064
harness.renames, plan “amont ships as greengate”).
Messages, usage text, error prefixes, --version lines and command hints
are built from these, never from a literal: a later name is one change
here. The names test (crates/greengate/tests/it/names.rs) fails on a new
literal "amont ", "amont: " or "amont-fleet" in any other source.
Not here: the names the tool READS (env vars, git config keys,
amont.conf, ledgers, state paths, markers, the slots contract). Those
keep their old spelling until plan 3a-2 reads both.
In a format string, name the constant inline: eprintln!("{BIN}: …").
For a &'static str built at compile time, use the [bin!] macro with
concat!.
Constants§
- BIN
- The hook binary.
- BREW_
FORMULA - The Homebrew formula, tap-qualified.
- CRATE
- The crate
cargo installtakes. - FLEET_
BIN - The fleet binary.
- INSTALLER_
URL - The one-line installer for Linux and macOS.
- NPM_
PACKAGE - The npm package.
- OLD_BIN
- The hook binary’s old name, still installed as an alias (a copy).
- OLD_
FLEET_ BIN - The fleet binary’s old name, still installed as an alias (a copy).
- PRODUCT
- The product’s name, as it introduces itself.
- REPO
- The repository the releases come from.