aboutsummaryrefslogblamecommitdiffstats
path: root/misc/gen_zsh_completion.go
blob: f80477d72e7cd9c9b3a2880a2adc4f5886d0b684 (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()
	filepath := path.Join(cwd, "misc", "zsh_completion", "git-bug")

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

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