gen_zsh_completion.go

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