To create or modify a command line argument or flag, you currently have to:
- Update the relevant
Command struct (e.g. DeleteCommand)
- Update a description variable (e.g.
deleteDscrAwsRegion)
- Update the
Help function for the Command struct
- Update the
Synopsis function for the Command struct
- Update the
flagSet defined in the Run function for the Command struct
This is way too much repetition. We should use a DRYer library for handling command line args & flags, such as jessevdk/go-flags.
To create or modify a command line argument or flag, you currently have to:
Commandstruct (e.g.DeleteCommand)deleteDscrAwsRegion)Helpfunction for theCommandstructSynopsisfunction for theCommandstructflagSetdefined in theRunfunction for theCommandstructThis is way too much repetition. We should use a DRYer library for handling command line args & flags, such as jessevdk/go-flags.