From 07852f7673834f6d1b266cd9ddcbede89bd03896 Mon Sep 17 00:00:00 2001 From: Steve Min Date: Tue, 8 May 2018 09:32:04 -0500 Subject: [PATCH] adding missing code --- DOCS.md | 4 +++- main.go | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/DOCS.md b/DOCS.md index 9967d53..6062ecd 100644 --- a/DOCS.md +++ b/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 ` 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. diff --git a/main.go b/main.go index ce00fba..528669c 100644 --- a/main.go +++ b/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 `=` 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"),