diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-06 03:22:36 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-06 03:26:42 +0200 |
commit | 26e7ce44db91f3b08fa5d1b32690348d40c1fb00 (patch) | |
tree | d42e357dfd83453d284f861dccdadfde54eef54e /misc/gen_zsh_completion.go | |
parent | b2f20c9a61715b0a60f9e55688dbed221d775c7e (diff) | |
download | git-bug-26e7ce44db91f3b08fa5d1b32690348d40c1fb00.tar.gz |
upgrade the readme
Diffstat (limited to 'misc/gen_zsh_completion.go')
-rw-r--r-- | misc/gen_zsh_completion.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/gen_zsh_completion.go b/misc/gen_zsh_completion.go new file mode 100644 index 00000000..41e08f9a --- /dev/null +++ b/misc/gen_zsh_completion.go @@ -0,0 +1,23 @@ +// +build ignore + +package main + +import ( + "fmt" + "github.com/MichaelMure/git-bug/commands" + "log" + "os" + "path" +) + +func main() { + cwd, _ := os.Getwd() + filepath := path.Join(cwd, "misc", "zsh_completion", "git-bug") + + fmt.Println("Generating zsh completion file ...") + + err := commands.RootCmd.GenZshCompletionFile(filepath) + if err != nil { + log.Fatal(err) + } +} |