aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gen_bash_completion.go
blob: 2d5e400bce5496bc1432d56a6b8d80d908529459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +build ignore

package main

import (
	"fmt"
	"log"
	"os"
	"path"

	"github.com/MichaelMure/git-bug/commands"
)

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

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

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