Expand description
SaferSkills CLI — library root.
The binary (src/main.rs) is a thin shell over this library: it parses the
clap tree, resolves output config, dispatches to a commands::run_* fn, and
maps the result to a process exit code. Everything testable lives here.
Module map (mirrors openlatch-client minus its daemon/hook/auth/cloud
subsystems):
cli— clap tree, global flags,cli::output/cli::color/cli::header.core—core::config,core::error,core::http,core::registry,core::telemetry,core::pow.agents— agent id model, detection, and the 8 config writers.api— typed endpoint wrappers +api::dtowire types.commands— one handler per command.
Re-exports§
pub use core::config;pub use core::error;pub use core::http;pub use core::registry;pub use core::telemetry;
Modules§
- agents
- Agent model + detection + writer dispatch.
- api
- Typed endpoint wrappers + client-side name resolution.
- cli
- Command-line surface: the clap tree, global flags, and output-config resolution.
- commands
- Command handlers. Dispatch is a single
matchinmain.rsover the clap enum → one freerun_*fn per command (no command trait). - core
- Shared leaf modules: config + local state, the error model, the HTTP client, the install registry, the Proof-of-Work solver, and telemetry.
- tui
- Interactive terminal UI for the
searchcommand (the only TUI surface).