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