faucet_cli/commands/
mod.rs1pub mod backfill;
5#[cfg(feature = "catalog")]
6pub mod catalog;
7pub mod completions;
8pub mod conformance;
9#[cfg(feature = "contract")]
10pub mod contract;
11#[cfg(feature = "cli-dev")]
12pub mod dev;
13pub mod discover;
14pub mod dlq;
15pub mod doctor;
16pub mod explain;
17pub mod fmt;
18#[cfg(feature = "catalog")]
19pub mod history;
20pub mod init;
21pub mod install;
22pub mod list;
23#[cfg(feature = "masking")]
24pub mod masking;
25#[cfg(feature = "mcp")]
26pub mod mcp;
27pub mod migrate;
28pub mod new;
29#[cfg(feature = "notify")]
30pub mod notify;
31pub mod plan;
32pub mod preview;
33pub mod replicate;
34pub mod run;
35#[cfg(feature = "schedule")]
36pub mod schedule;
37pub mod schema;
38pub mod search;
39#[cfg(feature = "serve")]
40pub mod serve;
41pub mod test;
42pub mod validate;
43
44use crate::error::CliError;
45
46pub fn report(err: &CliError) {
49 use crate::secrets::registry::redact;
50 eprintln!("error: {}", redact(&err.to_string()));
51 let mut src = std::error::Error::source(err);
52 while let Some(s) = src {
53 eprintln!(" caused by: {}", redact(&s.to_string()));
54 src = std::error::Error::source(s);
55 }
56}