diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2022-05-13 15:18:49 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2022-05-16 14:23:17 +0200 |
commit | 28639cf97fe3e526c6ace7499a3117d87bc1bd8f (patch) | |
tree | bf68be00d95e5275368919d379abd98b7714e529 | |
parent | f17ada2baf2866e90ac1f9d68309ed9b8d8347f8 (diff) |
sq: Add logging for shell completions.
- Output a cargo:warning with paths for generated shell completion
files, or a warning if generation failed.
-rw-r--r-- | sq/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sq/build.rs b/sq/build.rs index efc13f8d..d276dc71 100644 --- a/sq/build.rs +++ b/sq/build.rs @@ -41,7 +41,8 @@ fn main() { for shell in &[Shell::Bash, Shell::Fish, Shell::Zsh, Shell::PowerShell, Shell::Elvish] { - clap_complete::generate_to(*shell, &mut sq, "sq", &outdir).unwrap(); + let path = clap_complete::generate_to(*shell, &mut sq, "sq", &outdir).unwrap(); + println!("cargo:warning=completion file is generated: {:?}", path); }; } |