feat: use crate name for completion file generation
This commit is contained in:
2
build.rs
2
build.rs
@@ -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:?}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user