Skip to content

Commit

Permalink
Ability to use ENV variable for local running instead of cli flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wobondar committed Jul 31, 2018
1 parent e4b5f43 commit 6849dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/command_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func ConfigureEnvCommand(a *App) {
cmd.Flag("local", "Generate environment.tf with AWS_PROFILE for local running").
Default("false").
Short('l').
Envar(TerraformLocalEnvVar).
BoolVar(&c.local)
}

Expand Down
3 changes: 2 additions & 1 deletion src/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

const Version = "v0.3.2"
const Version = "v0.3.3"

const CiEnvVar = "CI"
const TerraformLocalEnvVar = "TF_LOCAL"
const TerraformEnvVar = "TF_ENV"
const ModulesDir = "aws-terraform-modules"
const ConfigFile = "config.tf"
Expand Down

0 comments on commit 6849dab

Please sign in to comment.