cli: Honor `--quiet` flag in `rad id update`

This commit is contained in:
cloudhead 2024-06-21 13:05:40 +02:00
parent 80f1e6516c
commit 6a9f11a1d9
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions

View File

@ -470,9 +470,11 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
proposal
};
if proposal == current.doc {
term::print(term::format::italic(
"Nothing to do. The document is up to date. See `rad inspect --identity`.",
));
if !options.quiet {
term::print(term::format::italic(
"Nothing to do. The document is up to date. See `rad inspect --identity`.",
));
}
return Ok(());
}
let revision = update(title, description, proposal, &mut identity, &signer)?;