mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
29 lines
507 B
Go
29 lines
507 B
Go
// +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.ClockedRepo) error {
|
|
return nil
|
|
})
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
rb.CommitRandomBugs(repo, rb.DefaultOptions())
|
|
}
|