gen_zsh_completion.go

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