From 984ce661cee19e67362c170674a57b53c9348f75 Mon Sep 17 00:00:00 2001 From: Albert Dixon Date: Fri, 24 May 2024 12:58:51 -0700 Subject: [PATCH] main: add unprefixed env vars --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 040cd6a..5c969a0 100644 --- a/main.go +++ b/main.go @@ -45,10 +45,10 @@ func main() { EnvVars: []string{"SECRETS_INIT_LOG_FORMAT", "LOG_FORMAT"}, }, &cli.StringFlag{ - Name: "provider, p", - Usage: "supported secrets manager provider ['aws', 'google']", - Value: "aws", - EnvVars: []string{"SECRETS_INIT_SECRETS_PROVIDER"} + Name: "provider, p", + Usage: "supported secrets manager provider ['aws', 'google']", + Value: "aws", + EnvVars: []string{"SECRETS_INIT_SECRETS_PROVIDER", "SECRETS_PROVIDER"}, }, &cli.BoolFlag{ Name: "exit-early", @@ -56,9 +56,9 @@ func main() { EnvVars: []string{"SECRETS_INIT_EXIT_EARLY", "EXIT_EARLY"}, }, &cli.StringFlag{ - Name: "google-project", - Usage: "the google cloud project for secrets without a project prefix", - EnvVars: []string{"SECRETS_INIT_GOOGLE_PROJECT"} + Name: "google-project", + Usage: "the google cloud project for secrets without a project prefix", + EnvVars: []string{"SECRETS_INIT_GOOGLE_PROJECT", "GOOGLE_PROJECT"}, }, }, Commands: []*cli.Command{