mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
25 lines
386 B
Go
25 lines
386 B
Go
|
// +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)
|
||
|
}
|
||
|
}
|