1package main
2
3import (
4 "os"
5
6 "github.com/git-bug/git-bug/entities/board"
7 "github.com/git-bug/git-bug/entities/bug"
8 rb "github.com/git-bug/git-bug/misc/random_bugs"
9 "github.com/git-bug/git-bug/repository"
10)
11
12// This program will randomly generate a collection of bugs in the repository
13// of the current path
14func main() {
15 const gitBugNamespace = "git-bug"
16
17 dir, err := os.Getwd()
18 if err != nil {
19 panic(err)
20 }
21
22 loaders := []repository.ClockLoader{
23 bug.ClockLoader,
24 board.ClockLoader,
25 }
26
27 repo, err := repository.OpenGoGitRepo(dir, gitBugNamespace, loaders)
28 if err != nil {
29 panic(err)
30 }
31
32 rb.CommitRandomBugs(repo, rb.DefaultOptions())
33}