From ee8260d57d8194288c52056ee27b0d0a7c111bdd Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 18 Jun 2024 09:49:06 -0600 Subject: Allow overriding the db path --- cmd/stanuki/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/stanuki') 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) -- cgit v1.2.3