main.go

 1// +build ignore
 2
 3package main
 4
 5import (
 6	"os"
 7
 8	rb "github.com/MichaelMure/git-bug/misc/random_bugs"
 9	"github.com/MichaelMure/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	dir, err := os.Getwd()
16	if err != nil {
17		panic(err)
18	}
19
20	repo, err := repository.NewGitRepo(dir, func(repo repository.ClockedRepo) error {
21		return nil
22	})
23	if err != nil {
24		panic(err)
25	}
26
27	rb.CommitRandomBugs(repo, rb.DefaultOptions())
28}