1package main
2
3import (
4 "os"
5
6 "github.com/MichaelMure/git-bug/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 dir, err := os.Getwd()
15 if err != nil {
16 panic(err)
17 }
18
19 loaders := []repository.ClockLoader{
20 bug.ClockLoader,
21 }
22
23 repo, err := repository.NewGitRepo(dir, loaders)
24 if err != nil {
25 panic(err)
26 }
27
28 rb.CommitRandomBugs(repo, rb.DefaultOptions())
29}