-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steven Normore
committed
Feb 21, 2024
1 parent
d68f109
commit bdac599
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package options | ||
|
||
import "time" | ||
|
||
type Options struct { | ||
TFToken string `short:"t" long:"terraform-token" env:"TERRAFORM_TOKEN" description:"Terraform API token"` | ||
Workspace string `short:"w" long:"workspace" env:"TERRAFORM_WORKSPACE" description:"Terraform Workspace"` | ||
Organization string `short:"o" long:"org" env:"TERRAFORM_ORGANIZATION" description:"Terraform Organization"` | ||
VariableName string `short:"n" long:"variable-name" env:"TERRAFORM_VARIABLE_NAME" description:"Terraform Variable Name"` | ||
VariableValue string `short:"v" long:"variable-value" env:"TERRAFORM_VARIABLE_VALUE" description:"Value to set for the Terraform Variable named in VariableName"` | ||
RunTitle string `long:"run-title" env:"TERRAFORM_RUN_TITLE" description:"Title for the Terraform Run. Defaults to latest commit message if unset."` | ||
DryRun bool `long:"dry-run" description:"Do not actually run the Terraform Run. Useful for testing."` | ||
VariableValueRequiredPrefix string `long:"variable-value-required-prefix" env:"VARIABLE_VALUE_REQUIRED_PREFIX" description:"If set, the VariableValue must start with this prefix"` | ||
TFToken string `short:"t" long:"terraform-token" env:"TERRAFORM_TOKEN" description:"Terraform API token"` | ||
Workspace string `short:"w" long:"workspace" env:"TERRAFORM_WORKSPACE" description:"Terraform Workspace"` | ||
Organization string `short:"o" long:"org" env:"TERRAFORM_ORGANIZATION" description:"Terraform Organization"` | ||
VariableName string `short:"n" long:"variable-name" env:"TERRAFORM_VARIABLE_NAME" description:"Terraform Variable Name"` | ||
VariableValue string `short:"v" long:"variable-value" env:"TERRAFORM_VARIABLE_VALUE" description:"Value to set for the Terraform Variable named in VariableName"` | ||
RunTitle string `long:"run-title" env:"TERRAFORM_RUN_TITLE" description:"Title for the Terraform Run. Defaults to latest commit message if unset."` | ||
DryRun bool `long:"dry-run" description:"Do not actually run the Terraform Run. Useful for testing."` | ||
VariableValueRequiredPrefix string `long:"variable-value-required-prefix" env:"VARIABLE_VALUE_REQUIRED_PREFIX" description:"If set, the VariableValue must start with this prefix"` | ||
Timeout time.Duration `long:"timeout" description:"Run timeout"` | ||
} |