aboutsummaryrefslogblamecommitdiffstats
path: root/misc/gen_bash_completion.go
blob: f2506606d7611fd2769bbd23ca6e17e93c032a95 (plain) (tree)
1
2
3
4
5
6
7
8
9





                


              

                                                 



                            
                                                                   


                                                          
                                                          



                              
// +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)
	}
}