Skip to content

Commit

Permalink
fix: (bash) completion script is broken
Browse files Browse the repository at this point in the history
The generated completion shell for at least bash is broken, the
completion for other shells I haven't tested.

Because the Use string was not set for the root command, an empty string
was used in the generated completion script.
This causes the completion script to not execute because among others
the command "complete -o default -F __start_" fails
because the command name parameter is missing.
  • Loading branch information
fho committed Feb 6, 2024
1 parent 3aebe36 commit 0dc9a9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func newRoot() *cobra.Command {
const shortDesc = "Visualize Dependencies and generate deployment orders"

root := &cobra.Command{
Use: "dependencies-tool COMMAND",
Short: shortDesc,
SilenceUsage: true,
Version: version,
Expand Down

0 comments on commit 0dc9a9f

Please # to comment.