soma_cli_core/lib.rs
1//! Reusable CLI plumbing: output-format selection, JSON rendering,
2//! confirmation I/O, and terminal/color capability policy.
3//!
4//! This crate is transport- and product-neutral. It has no knowledge of
5//! Soma commands, action names, scopes, or exit-code policy — a consuming
6//! CLI supplies its own parser and wording and calls into these primitives
7//! for the generic mechanics.
8//!
9//! Modules here are extracted because `soma-cli` (or another consumer)
10//! actually calls them. Table rendering, progress reporting, shell
11//! completion generation, and structured CLI error presentation are not
12//! part of this crate yet — add them here, backed by a real caller, when a
13//! consumer actually needs them rather than speculatively ahead of use.
14
15#![forbid(unsafe_code)]
16
17pub mod color;
18pub mod common_args;
19pub mod confirmation;
20pub mod json;
21pub mod output;
22pub mod terminal;