aboutsummaryrefslogblamecommitdiffstats
path: root/doc/gen_zsh_completion.go
blob: 74c900fb2ae0c6a3813903716af0c03b3c20021d (plain) (tree)
1
2

                




















                                                                      
// +build ignore

package main

import (
	"fmt"
	"github.com/MichaelMure/git-bug/commands"
	"log"
	"os"
	"path"
)

func main() {
	cwd, _ := os.Getwd()
	filepath := path.Join(cwd, "doc", "zsh_completion", "git-bug")

	fmt.Println("Generating zsh completion file ...")

	err := commands.RootCmd.GenZshCompletionFile(filepath)
	if err != nil {
		log.Fatal(err)
	}
}