Skip to content

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

Merged
merged 1 commit into from
Jul 25, 2023
Merged

feat(cli): add --var shorthand for --variable #8710

merged 1 commit into from
Jul 25, 2023

Conversation

ammario
Copy link
Member

@ammario ammario commented Jul 25, 2023

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 or
verbose, so we're left with "--var".

Copy link
Member

@ericpaulsen ericpaulsen left a 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.

@ammario
Copy link
Member Author

ammario commented Jul 25, 2023

thx @ericpaulsen

I'll hold off on merging this until @mtojek gives the 👍🏽 on the flag name.

Copy link
Member

@mtojek mtojek left a 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.

Flag: "variable",
Description: "Specify a set of values for Terraform-managed variables.",
Value: clibase.StringArrayOf(&variables),
FlagShorthand: "V",
Copy link
Member

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".
@ammario ammario changed the title feat(cli): add -V shorthand for --variable feat(cli): add --var shorthand for --variable Jul 25, 2023
@ammario ammario enabled auto-merge (squash) July 25, 2023 14:30
@ammario ammario merged commit 2a01747 into main Jul 25, 2023
@ammario ammario deleted the pr8710 branch July 25, 2023 14:36
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants