zenith_cli/commands/library.rs
1//! Pure logic for `zenith library list`, `zenith library show`, and `zenith library add`.
2//!
3//! The registry/resolver lives in [`crate::library`]; this module turns a
4//! resolved set of packs into stdout text ([`list`]), inspects individual items
5//! ([`show`]), and materializes library items into target documents ([`add`]).
6//! None of these functions touch the filesystem — the dispatcher reads/writes
7//! files and calls [`crate::library::resolve_packs`].
8//!
9//! Submodules:
10//! - [`list`] — `zenith library list`
11//! - [`show`] — `zenith library show`
12//! - [`add`] — `zenith library add`
13
14mod add;
15mod list;
16mod show;
17
18pub use add::{AddCmdErr, AddResult, add};
19pub use list::list;
20pub use show::{ShowCmdErr, show};