From 929d7093644e4f6b83ef366b83b5b66be075736e Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 8 Aug 2018 20:12:04 +0200 Subject: bash completion: thanks to @tst2005, make the completion works for "git bug " --- misc/gen_bash_completion.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'misc/gen_bash_completion.go') diff --git a/misc/gen_bash_completion.go b/misc/gen_bash_completion.go index 3a75b0f5..8793556a 100644 --- a/misc/gen_bash_completion.go +++ b/misc/gen_bash_completion.go @@ -16,22 +16,6 @@ func main() { fmt.Println("Generating bash completion file ...") - //git := &cobra.Command{ - // Use: "git", - // BashCompletionFunction: "qsdhjlkqsdhlsd", - //} - // - //bug := &cobra.Command{ - // Use: "bug", - // BashCompletionFunction: "ZHZLDHKLZDHJKL", - //} - //git.AddCommand(bug) - - //for _, sub := range commands.RootCmd.Commands() { - // bug.AddCommand(sub) - //} - - //err := git.GenBashCompletionFile(filepath) err := commands.RootCmd.GenBashCompletionFile(filepath) if err != nil { log.Fatal(err) -- cgit