aboutsummaryrefslogblamecommitdiffstats
path: root/misc/gen_bash_completion.go
blob: 8793556a5f46532be6b573861e6490a67c683c70 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                        




                                                               
// +build ignore

package main

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

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

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

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