aboutsummaryrefslogblamecommitdiffstats
path: root/misc/gen_powershell_completion.go
blob: c27663995932ee2da4388fa85f27b0a53f358887 (plain) (tree)























                                                                              
// +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", "powershell_completion", "git-bug")

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

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