Browse Source

adding missing code

pull/66/head
Steve Min 7 years ago
parent
commit
07852f7673
  1. 4
      DOCS.md
  2. 6
      main.go

4
DOCS.md

@ -202,7 +202,7 @@ init_options.lock
init_options.lock-timeout
: Duration to wait for a state lock. Default `0s`.
init_options.plugin-dir
init_options.plugin-path
: Local path to use terraform plugins from. Default is `""` which will pull from upstream Terraform.
vars
@ -216,6 +216,8 @@ Each value is passed as a `-var-file <value>` option.
ca_cert
: ca cert to add to your environment to allow terraform to use internal/private resources
plugin_dir
sensitive
: (default: `false`) - Whether or not to suppress terraform commands to stdout.

6
main.go

@ -78,6 +78,11 @@ func main() {
Usage: "a map of secrets to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `<key>=<ENV>` option",
EnvVar: "PLUGIN_SECRETS",
},
cli.StringFlag{
Name: "plugin_dir",
Usage: "whether or not to set custom plugin directory path",
EnvVar: "PLUGIN_DIR",
}
cli.BoolFlag{
Name: "sensitive",
Usage: "whether or not to suppress terraform commands to stdout",
@ -148,6 +153,7 @@ func run(c *cli.Context) error {
Parallelism: c.Int("parallelism"),
Targets: c.StringSlice("targets"),
VarFiles: c.StringSlice("var_files"),
PluginDir: c.Bool("plugin_dir"),
},
Netrc: Netrc{
Login: c.String("netrc.username"),

Loading…
Cancel
Save