ec2-snapper
ec2-snapper copied to clipboard
Use a more DRY way of handling command line args and flags
To create or modify a command line argument or flag, you currently have to:
- Update the relevant
Commandstruct (e.g.DeleteCommand) - Update a description variable (e.g.
deleteDscrAwsRegion) - Update the
Helpfunction for theCommandstruct - Update the
Synopsisfunction for theCommandstruct - Update the
flagSetdefined in theRunfunction for theCommandstruct
This is way too much repetition. We should use a DRYer library for handling command line args & flags, such as jessevdk/go-flags.