faucet_cli/commands/
mod.rs1pub mod doctor;
5pub mod init;
6pub mod list;
7pub mod preview;
8pub mod replicate;
9pub mod run;
10#[cfg(feature = "schedule")]
11pub mod schedule;
12pub mod schema;
13#[cfg(feature = "serve")]
14pub mod serve;
15pub mod validate;
16
17use crate::error::CliError;
18
19pub fn report(err: &CliError) {
22 use crate::secrets::registry::redact;
23 eprintln!("error: {}", redact(&err.to_string()));
24 let mut src = std::error::Error::source(err);
25 while let Some(s) = src {
26 eprintln!(" caused by: {}", redact(&s.to_string()));
27 src = std::error::Error::source(s);
28 }
29}