aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gen_zsh_completion.go
blob: 319805fddf877b22e66792727e7c6819b5090396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
	}
}