1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Lib Cornerstone
//!
//! The shared foundation every CLI is built on. Declare *what your commands are
//! and what they do*; Cornerstone supplies everything else: argument parsing,
//! nested subcommands, help menus (three presets or a custom renderer), global
//! flags, colored themeable output, tables, trees, key/value blocks, progress
//! bars and spinners, timers, structured errors with exit codes, config loading
//! with env/flag precedence, interactive prompts, shell-completion generation,
//! fuzzy "did you mean?" suggestions, signal handling, and safety guards for
//! root and destructive operations.
//!
//! Everything is zero-dependency, neutral by default, and overridable — the
//! library encapsulates the work without imposing a house style.
//!
//! ```ignore
//! use cornerstone::prelude::*;
//!
//! fn main() {
//! App::new("mytool")
//! .about("Does the thing")
//! .command("hello", "Say hello", |ctx| ctx.ok("hello!"))
//! .run();
//! }
//! ```