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

CLI cleanup #32

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

CLI cleanup #32

wants to merge 5 commits into from

Conversation

acdha
Copy link

@acdha acdha commented Jan 29, 2019

I was testing this locally and made several changes to make the process a bit nicer. Beyond some PEP-8 cleanup, here are the major changes:

  • Use the AWS_DEFAULT_REGION environmental variable as the region if defined
  • Use a mutually-exclusive option group so CLI users must explicitly select either a dry-run or deleting images
  • The output is now more consistently formatted and has a nicer display of the image IDs which would be deleted

acdha added 5 commits January 29, 2019 11:25
This avoids needing to do type-conversions which
look like errors
* Use easier to read variable names following PEP-8
* Default to a dry-run unless deletion is confirmed
* Use a mutually-exclusive argument group to require command-line runs to specify either --dry-run or --delete-images.
* Have --region default to $AWS_DEFAULT_REGION if set
* Easier to understand variable names
* Print output has consistent use of colons
* Fix typo
* Use enumerate rather than reinventing it
* Nicer display of the digests which would be deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant