git-bug/doc/gen_zsh_completion.go

24 lines
363 B
Go
Raw Normal View History

// +build ignore
2018-07-20 17:08:55 +03:00
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)
}
}