mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
25 lines
358 B
Go
25 lines
358 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
"path"
|
|
|
|
"github.com/MichaelMure/git-bug/commands"
|
|
)
|
|
|
|
func main() {
|
|
cwd, _ := os.Getwd()
|
|
dir := path.Join(cwd, "misc", "bash_completion", "git-bug")
|
|
|
|
fmt.Println("Generating Bash completion file ...")
|
|
|
|
err := commands.RootCmd.GenBashCompletionFile(dir)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|