aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-23 13:02:18 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:28 +0100
commitdc1edf8e640f4d0f4d4a8bc01a7459ff8123705e (patch)
treecf9e3cb3b488e5836618a850c7ec463bb8a7cc66 /misc
parentb8caddddc7aaf34b2da61c590fd1d9a0fae024fb (diff)
downloadgit-bug-dc1edf8e640f4d0f4d4a8bc01a7459ff8123705e.tar.gz
generator cleanup
Diffstat (limited to 'misc')
-rw-r--r--misc/gen_bash_completion.go7
-rw-r--r--misc/gen_zsh_completion.go3
-rw-r--r--misc/random_bugs/main.go2
3 files changed, 7 insertions, 5 deletions
diff --git a/misc/gen_bash_completion.go b/misc/gen_bash_completion.go
index 8793556a..f2506606 100644
--- a/misc/gen_bash_completion.go
+++ b/misc/gen_bash_completion.go
@@ -4,19 +4,20 @@ package main
import (
"fmt"
- "github.com/MichaelMure/git-bug/commands"
"log"
"os"
"path"
+
+ "github.com/MichaelMure/git-bug/commands"
)
func main() {
cwd, _ := os.Getwd()
- filepath := path.Join(cwd, "misc", "bash_completion", "git-bug")
+ dir := path.Join(cwd, "misc", "bash_completion", "git-bug")
fmt.Println("Generating bash completion file ...")
- err := commands.RootCmd.GenBashCompletionFile(filepath)
+ err := commands.RootCmd.GenBashCompletionFile(dir)
if err != nil {
log.Fatal(err)
}
diff --git a/misc/gen_zsh_completion.go b/misc/gen_zsh_completion.go
index 41e08f9a..184cab43 100644
--- a/misc/gen_zsh_completion.go
+++ b/misc/gen_zsh_completion.go
@@ -4,10 +4,11 @@ package main
import (
"fmt"
- "github.com/MichaelMure/git-bug/commands"
"log"
"os"
"path"
+
+ "github.com/MichaelMure/git-bug/commands"
)
func main() {
diff --git a/misc/random_bugs/main.go b/misc/random_bugs/main.go
index 31b12e45..274b3dac 100644
--- a/misc/random_bugs/main.go
+++ b/misc/random_bugs/main.go
@@ -17,7 +17,7 @@ func main() {
panic(err)
}
- repo, err := repository.NewGitRepo(dir, func(repo *repository.GitRepo) error {
+ repo, err := repository.NewGitRepo(dir, func(repo repository.ClockedRepo) error {
return nil
})
if err != nil {