-
Notifications
You must be signed in to change notification settings - Fork 887
feat(cli): add --var shorthand for --variable #8710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b554c9e
to
12ae951
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs & helm files look good.
thx @ericpaulsen I'll hold off on merging this until @mtojek gives the 👍🏽 on the flag name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not blocking this PR, but I admit that -V
may be confusing.
cli/templatecreate.go
Outdated
Flag: "variable", | ||
Description: "Specify a set of values for Terraform-managed variables.", | ||
Value: clibase.StringArrayOf(&variables), | ||
FlagShorthand: "V", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-V
is always confusing as it usually means --version
or --verbose
.
Maybe we should another alias, -var
, instead? Alternatively, we can add support for TF_VAR_.
`--variable` is used frequently enough to deserve a shorthand. Unfortunately, `-v` is taken by verbose, and `-V` is too easily confused with version or verbose, so we're left with "--var".
feat(cli): add --var shorthand for --variable
--variable
is used frequently enough to deserve a shorthand. Unfortunately,-v
is taken by verbose, and-V
is too easily confused with version orverbose, so we're left with "--var".