diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-23 14:37:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-23 14:37:04 +0200 |
commit | fb964bd3e99546df6edb5a4c913d0960dabe9826 (patch) | |
tree | 0846697446f1a75a170c8cef749b35992a40bde5 /misc/gen_powershell_completion.go | |
parent | 89c6732354ba4efd7c36c253fc5d02f0b6c7a7a4 (diff) | |
parent | b64587f87abdca0bb15120bf3da48eedd812ca6b (diff) | |
download | git-bug-fb964bd3e99546df6edb5a4c913d0960dabe9826.tar.gz |
Merge pull request #168 from MichaelMure/dependabot/dep/github.com/spf13/cobra-0.0.5
build(deps): bump github.com/spf13/cobra from 0.0.4 to 0.0.5
Diffstat (limited to 'misc/gen_powershell_completion.go')
-rw-r--r-- | misc/gen_powershell_completion.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/misc/gen_powershell_completion.go b/misc/gen_powershell_completion.go new file mode 100644 index 00000000..c2766399 --- /dev/null +++ b/misc/gen_powershell_completion.go @@ -0,0 +1,24 @@ +// +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) + } +} |