Add -config flag using cobra to specify config file path

This commit is contained in:
2026-01-08 04:58:05 -08:00
parent 271527679e
commit 6a20406b0f
4 changed files with 82 additions and 23 deletions

2
go.mod
View File

@@ -11,6 +11,7 @@ require (
github.com/go-chi/cors v1.2.2
github.com/prometheus/client_golang v1.23.2
github.com/slok/go-http-metrics v0.13.0
github.com/spf13/cobra v1.10.2
go.uber.org/fx v1.24.0
golang.org/x/image v0.34.0
modernc.org/sqlite v1.42.2
@@ -85,6 +86,7 @@ require (
github.com/hashicorp/hcl v1.0.1-vault-7 // indirect
github.com/hashicorp/serf v0.10.1 // indirect
github.com/hashicorp/vault/api v1.20.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect