Skip to main content

jacs_cli/
lib.rs

1//! `jacs-cli` library surface.
2//!
3//! This crate is primarily a binary (`jacs`), but a small slice of its CLI
4//! definition is exposed as a library so the snapshot test in
5//! `tests/cli_command_snapshot.rs` can walk the Clap `Command` tree
6//! programmatically. Keeping the library tiny avoids the historical
7//! "main.rs is in two build targets" warning (Issue 017 / Issue 023): the
8//! binary lives at `src/main.rs`, the library lives here at `src/lib.rs`.
9//!
10//! The `password_bootstrap` module is re-published because `build_cli` calls
11//! into `quickstart_password_bootstrap_help()` for `--help` text. No other
12//! main.rs internals are exposed.
13
14pub mod password_bootstrap;
15
16mod cli_builder;
17
18pub use cli_builder::build_cli;