summaryrefslogtreecommitdiff
path: root/srv/cmd/mailinglist-cli
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-05 20:17:59 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-05 20:30:36 -0600
commit5c247b6f2907e8c4da5a66fa2192fcba95e100f2 (patch)
treef5462cd7b31181d7b0217cb899c49e0ae5790e53 /srv/cmd/mailinglist-cli
parent0277c0276715d326a4bcf2be37d2aec5982078f7 (diff)
Refactor cfg to use envvars as well
Diffstat (limited to 'srv/cmd/mailinglist-cli')
-rw-r--r--srv/cmd/mailinglist-cli/main.go6
1 files changed, 5 insertions, 1 deletions
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")