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