Shell completion generation status should print to stderr, not stdout

This commit is contained in:
timvisee 2021-04-21 19:11:54 +02:00
parent 463130cdf8
commit 8bd3efb1c4
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -38,14 +38,14 @@ impl<'a> Completions<'a> {
// Generate completions
for shell in shells {
if !quiet {
print!(
eprint!(
"Generating completions for {}...",
format!("{}", shell).to_lowercase()
);
}
app.gen_completions(crate_name!(), shell, &dir);
if !quiet {
println!(" done.");
eprintln!(" done.");
}
}