Skip to content

Commit

Permalink
Pull default values from environment for kms encrypt --project and --…
Browse files Browse the repository at this point in the history
…key flags (#16)
  • Loading branch information
nicksantamaria authored Aug 28, 2024
1 parent cd34b09 commit 67f903e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import (
project_map "github.com/dpc-sdp/bay-cli/cmd/project-map"
)

const (
EnvLagoonProject = "LAGOON_PROJECT"
EnvLagoonEnvironmentType = "LAGOON_ENVIRONMENT_TYPE"
)

func main() {
app := &cli.App{
Name: "bay",
Expand All @@ -27,11 +32,13 @@ func main() {
&cli.StringFlag{
Name: "project",
Usage: "Name of lagoon project",
EnvVars: []string{EnvLagoonProject},
Required: true,
},
&cli.StringFlag{
Name: "key",
Usage: "Name of key",
EnvVars: []string{EnvLagoonEnvironmentType},
Required: true,
},
},
Expand Down

0 comments on commit 67f903e

Please sign in to comment.