From 5c247b6f2907e8c4da5a66fa2192fcba95e100f2 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 5 May 2022 20:17:59 -0600 Subject: Refactor cfg to use envvars as well --- srv/cmd/mailinglist-cli/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'srv/cmd/mailinglist-cli/main.go') diff --git a/srv/cmd/mailinglist-cli/main.go b/srv/cmd/mailinglist-cli/main.go index 80fde25..a44dadd 100644 --- a/srv/cmd/mailinglist-cli/main.go +++ b/srv/cmd/mailinglist-cli/main.go @@ -14,8 +14,12 @@ import ( ) func main() { + ctx := context.Background() - cfg := cfg.New() + + cfg := cfg.New(cfg.Params{ + EnvPrefix: "MEDIOCRE_BLOG", + }) dataDir := cfg.String("data-dir", ".", "Directory to use for long term storage") -- cgit v1.2.3