2018-07-20 17:42:21 +03:00
|
|
|
// +build ignore
|
|
|
|
|
2018-07-20 17:08:55 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"path"
|
2019-02-23 15:02:18 +03:00
|
|
|
|
|
|
|
"github.com/MichaelMure/git-bug/commands"
|
2018-07-20 17:08:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
cwd, _ := os.Getwd()
|
2018-08-06 04:22:36 +03:00
|
|
|
filepath := path.Join(cwd, "misc", "zsh_completion", "git-bug")
|
2018-07-20 17:08:55 +03:00
|
|
|
|
2019-06-23 15:31:27 +03:00
|
|
|
fmt.Println("Generating ZSH completion file ...")
|
2018-07-20 17:08:55 +03:00
|
|
|
|
|
|
|
err := commands.RootCmd.GenZshCompletionFile(filepath)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|