Skip to main content

report_deletion

Function report_deletion 

Source
pub fn report_deletion(
    json_mode: bool,
    kind: &'static str,
    id: impl Into<String>,
) -> Result<()>
Expand description

Report a deletion on stdout, as a table or as JSON.

§Errors

Returns an error if JSON serialization or writing fails.

§Examples

use ironflow_cli::output::report_deletion;

report_deletion(false, "secret", "db/password")?;