Skip to content
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

Improve terraform import. Add help for all atmos commands #94

Merged
merged 15 commits into from Dec 21, 2021

Conversation

aknysh
Copy link
Member

@aknysh aknysh commented Dec 21, 2021

what

  • Improve terraform import
  • Add help for all atmos commands

why

  • Since terraform import command requires a region, atmos terraform import looks for region in the variables for the specified component and stack, and if it finds it, sets AWS_REGION=<region> ENV var before executing the command

  • Help needed for all atmos commands and subcommands

related

test

atmos --help

image

atmos terraform --help

image

atmos terraform plan --help

image

atmos helmfile --help

image

atmos helmfile diff --help

image

@aknysh aknysh added the patch A minor, backward compatible change label Dec 21, 2021
@aknysh aknysh self-assigned this Dec 21, 2021
@aknysh aknysh requested review from a team as code owners December 21, 2021 04:19
configAndStacksInfo.NeedHelp = argsAndFlagsInfo.NeedHelp

// Check if `-h` or `--help` flags are specified
if argsAndFlagsInfo.NeedHelp == true {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if argsAndFlagsInfo.NeedHelp == true {
if argsAndFlagsInfo.NeedHelp {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, nice find.
it's opinionated since Go is a very explicit language

@aknysh aknysh merged commit 89a2ad0 into master Dec 21, 2021
@aknysh aknysh deleted the new-features-2 branch December 21, 2021 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A minor, backward compatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic when trying to get command help
2 participants