mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 03:10:39 +00:00
Alphabetize flags
This commit is contained in:
parent
f308949c4a
commit
0faae5eb94
71
main.go
71
main.go
@ -23,30 +23,30 @@ func main() {
|
|||||||
// plugin args
|
// plugin args
|
||||||
//
|
//
|
||||||
|
|
||||||
cli.StringFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "init_options",
|
Name: "actions",
|
||||||
Usage: "options for the init command. See https://www.terraform.io/docs/commands/init.html",
|
Usage: "a list of actions to have terraform perform",
|
||||||
EnvVar: "PLUGIN_INIT_OPTIONS",
|
EnvVar: "PLUGIN_ACTIONS",
|
||||||
},
|
Value: &cli.StringSlice{"validate", "apply"},
|
||||||
cli.StringFlag{
|
|
||||||
Name: "vars",
|
|
||||||
Usage: "a map of variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `<key>=<value>` option",
|
|
||||||
EnvVar: "PLUGIN_VARS",
|
|
||||||
},
|
|
||||||
cli.StringFlag{
|
|
||||||
Name: "secrets",
|
|
||||||
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{
|
cli.StringFlag{
|
||||||
Name: "ca_cert",
|
Name: "ca_cert",
|
||||||
Usage: "ca cert to add to your environment to allow terraform to use internal/private resources",
|
Usage: "ca cert to add to your environment to allow terraform to use internal/private resources",
|
||||||
EnvVar: "PLUGIN_CA_CERT",
|
EnvVar: "PLUGIN_CA_CERT",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.StringFlag{
|
||||||
Name: "sensitive",
|
Name: "env-file",
|
||||||
Usage: "whether or not to suppress terraform commands to stdout",
|
Usage: "source env file",
|
||||||
EnvVar: "PLUGIN_SENSITIVE",
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "init_options",
|
||||||
|
Usage: "options for the init command. See https://www.terraform.io/docs/commands/init.html",
|
||||||
|
EnvVar: "PLUGIN_INIT_OPTIONS",
|
||||||
|
},
|
||||||
|
cli.IntFlag{
|
||||||
|
Name: "parallelism",
|
||||||
|
Usage: "The number of concurrent operations as Terraform walks its graph",
|
||||||
|
EnvVar: "PLUGIN_PARALLELISM",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "role_arn_to_assume",
|
Name: "role_arn_to_assume",
|
||||||
@ -58,38 +58,35 @@ func main() {
|
|||||||
Usage: "The root directory where the terraform files live. When unset, the top level directory will be assumed",
|
Usage: "The root directory where the terraform files live. When unset, the top level directory will be assumed",
|
||||||
EnvVar: "PLUGIN_ROOT_DIR",
|
EnvVar: "PLUGIN_ROOT_DIR",
|
||||||
},
|
},
|
||||||
cli.IntFlag{
|
|
||||||
Name: "parallelism",
|
|
||||||
Usage: "The number of concurrent operations as Terraform walks its graph",
|
|
||||||
EnvVar: "PLUGIN_PARALLELISM",
|
|
||||||
},
|
|
||||||
|
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "env-file",
|
Name: "secrets",
|
||||||
Usage: "source env file",
|
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.BoolFlag{
|
||||||
|
Name: "sensitive",
|
||||||
|
Usage: "whether or not to suppress terraform commands to stdout",
|
||||||
|
EnvVar: "PLUGIN_SENSITIVE",
|
||||||
},
|
},
|
||||||
|
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "targets",
|
Name: "targets",
|
||||||
Usage: "targets to run apply or plan on",
|
Usage: "targets to run apply or plan on",
|
||||||
EnvVar: "PLUGIN_TARGETS",
|
EnvVar: "PLUGIN_TARGETS",
|
||||||
},
|
},
|
||||||
|
|
||||||
cli.StringSliceFlag{
|
|
||||||
Name: "var_files",
|
|
||||||
Usage: "a list of var files to use. Each value is passed as -var-file=<value>",
|
|
||||||
EnvVar: "PLUGIN_VAR_FILES",
|
|
||||||
},
|
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "tf.version",
|
Name: "tf.version",
|
||||||
Usage: "terraform version to use",
|
Usage: "terraform version to use",
|
||||||
EnvVar: "PLUGIN_TF_VERSION",
|
EnvVar: "PLUGIN_TF_VERSION",
|
||||||
},
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "vars",
|
||||||
|
Usage: "a map of variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `<key>=<value>` option",
|
||||||
|
EnvVar: "PLUGIN_VARS",
|
||||||
|
},
|
||||||
cli.StringSliceFlag{
|
cli.StringSliceFlag{
|
||||||
Name: "actions",
|
Name: "var_files",
|
||||||
Usage: "a list of actions to have terraform perform",
|
Usage: "a list of var files to use. Each value is passed as -var-file=<value>",
|
||||||
EnvVar: "PLUGIN_ACTIONS",
|
EnvVar: "PLUGIN_VAR_FILES",
|
||||||
Value: &cli.StringSlice{"validate", "apply"},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user