Expand description
taskfast-cli library surface.
The crate ships primarily as the taskfast binary (see src/main.rs),
but every subcommand’s run function and the shared envelope/exit/error
types are re-exported here so integration tests (and, later, embedded
callers) can drive the pipeline without spawning a process.
Re-exports§
pub use config::Config;pub use envelope::Envelope;pub use envelope::ErrorPayload;pub use exit::ExitCode;
Modules§
- cmd
- Subcommand module tree + shared
Ctx/CmdErrortypes. - config
- JSON config file for the
taskfastCLI. - envelope
- JSON output envelope — uniform across success/error/dry-run.
- exit
- Deterministic exit-code taxonomy — stable contract for agent orchestrators.
- trace
- CLI-native JSONL command trace (gh#85).
- wallet_
lock - F9: exclusive file-lock guarding wallet-signing operations against
concurrent
taskfast postinvocations sharing the same keystore.
Enums§
- Environment
- Re-exported from
main.rsso tests can construct acmd::Ctxwith a namedEnvironmentwithout depending on the binary entry point. - Network
- Tempo network selector. Derived from
Environment— never persisted, never accepted as a CLI flag. The compile-time mapping inEnvironment::networkis the single source of truth; the runtime invariant incmd::enforce_server_network_invariantcross-checks it against/config/network.
Functions§
- accounts_
url - Derive the human-facing account-tokens URL from an API base URL.
- is_
well_ known_ api_ base - True when
urlexactly matches a known-good default fromwell_known_api_bases. Trailing/is tolerated so a valuehttps://api.taskfast.app/isn’t flagged as custom. - well_
known_ api_ bases - Iterator over the well-known TaskFast API base URLs — one per
Environmentvariant, derived fromEnvironment::api_base.