diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-27 21:31:35 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-09-27 21:39:05 +0200 |
commit | 9f3a56b1f34a8b4a7a75357986e967afc4b96611 (patch) | |
tree | 2c4e51bb219c1f2ac5791e51008225a68cc633b5 | |
parent | 7f87eb8602b76acbf3acc91391249d0e76424db6 (diff) | |
download | git-bug-9f3a56b1f34a8b4a7a75357986e967afc4b96611.tar.gz |
misc: move the random bug command on its own package
-rw-r--r-- | misc/random_bugs/cmd/main.go (renamed from misc/random_bugs/main.go) | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/random_bugs/main.go b/misc/random_bugs/cmd/main.go index f67cd432..ec62b6ed 100644 --- a/misc/random_bugs/main.go +++ b/misc/random_bugs/cmd/main.go @@ -1,10 +1,9 @@ -// +build ignore - package main import ( "os" + "github.com/MichaelMure/git-bug/bug" rb "github.com/MichaelMure/git-bug/misc/random_bugs" "github.com/MichaelMure/git-bug/repository" ) @@ -17,7 +16,11 @@ func main() { panic(err) } - repo, err := repository.NewGitRepo(dir) + loaders := []repository.ClockLoader{ + bug.ClockLoader, + } + + repo, err := repository.NewGitRepo(dir, loaders) if err != nil { panic(err) } |