feat: use crate name for completion file generation

This commit is contained in:
2026-03-01 11:27:24 +01:00
parent 19c0fa81ab
commit 2463e83a43

View File

@@ -19,7 +19,7 @@ fn main() -> Result<(), Error> {
let mut cmd = Cli::command(); let mut cmd = Cli::command();
for shell in Shell::value_variants() { for shell in Shell::value_variants() {
let path = generate_to(*shell, &mut cmd, "todo", &outdir)?; let path = generate_to(*shell, &mut cmd, env!("CARGO_PKG_NAME"), &outdir)?;
println!("cargo:warning=completion file is generated: {path:?}"); println!("cargo:warning=completion file is generated: {path:?}");
} }