Skip to content

Commit

Permalink
Update completion generator to use dynamic command name
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeh committed Oct 13, 2024
1 parent 584da26 commit 479256b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ pub fn generate_shell_completions_or_continue() {
}

fn print_completions<G: Generator>(gen: G, cmd: &mut Command) {
generate(gen, cmd, "tspin", &mut io::stdout());
generate(gen, cmd, cmd.get_name().to_string(), &mut io::stdout());
}

0 comments on commit 479256b

Please sign in to comment.