aboutsummaryrefslogtreecommitdiffstats
path: root/misc/random_bugs/main.go
blob: 7211548e0e96c704f02d7ac8270029d24db37389 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// +build ignore

package main

import (
	"os"

	rb "github.com/MichaelMure/git-bug/misc/random_bugs"
	"github.com/MichaelMure/git-bug/repository"
)

// This program will randomly generate a collection of bugs in the repository
// of the current path
func main() {
	dir, err := os.Getwd()
	if err != nil {
		panic(err)
	}

	repo, err := repository.NewGitRepo(dir, func(repo *repository.GitRepo) error {
		return nil
	})
	if err != nil {
		panic(err)
	}

	rb.GenerateRandomBugs(repo, rb.DefaultOptions())
}