gen_zsh_completion.go
1// +build ignore
2
3package main
4
5import (
6 "fmt"
7 "log"
8 "os"
9 "path"
10
11 "github.com/MichaelMure/git-bug/commands"
12)
13
14func main() {
15 cwd, _ := os.Getwd()
16 filepath := path.Join(cwd, "misc", "zsh_completion", "git-bug")
17
18 fmt.Println("Generating zsh completion file ...")
19
20 err := commands.RootCmd.GenZshCompletionFile(filepath)
21 if err != nil {
22 log.Fatal(err)
23 }
24}