diff options
| author | mo khan <mo@mokhan.ca> | 2024-06-18 09:49:06 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-06-18 09:49:06 -0600 |
| commit | ee8260d57d8194288c52056ee27b0d0a7c111bdd (patch) | |
| tree | 8a6b9360dda7725cc75e234acf9e3608556a89e0 | |
| parent | 0b1daf7b312ef8d44bb63a70d32d812d50ef3ea5 (diff) | |
Allow overriding the db path
| -rw-r--r-- | cmd/stanuki/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/stanuki/main.go b/cmd/stanuki/main.go index 4118398..5589845 100644 --- a/cmd/stanuki/main.go +++ b/cmd/stanuki/main.go @@ -9,7 +9,7 @@ import ( ) func main() { - issues := db.New[*gitlab.Issue]("./db/issues") + issues := db.New[*gitlab.Issue](env.Fetch("DB_PATH", "./db")) gl := gitlab.New(context.TODO(), env.Fetch("GITLAB_TOKEN", "")) gl.Group(9970).EachIssue(func(issue *gitlab.Issue) { issues.Save(issue) |
