From 0dc9a9f874987894f9837d9646ed85df36aa3945 Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Tue, 6 Feb 2024 18:15:35 +0100 Subject: [PATCH] fix: (bash) completion script is broken 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. --- internal/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 3efa290..928b3cc 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -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,