Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm silently following the aurae project for a while now, and I'm really looking forward to what it will be!
I recently did some research on how different golang projects structure their subcommands. During this process, I came across perses and liked how they do it. So instead of saying "look ma how they did it!", I'm saying "look ma, this is how it could look like for
ae
, if we'd follow this approach".But hear me out :)
The advantage is a clear interface for each subcommand, expecting:
ae stop container # Note this has an alias: 'ae oci kill'
)For demonstration, I added a
version
subcommand (I hope it's useful). This btw. addresses 50% of #3.Version allows output in JSON
And an optional shorthand
As I said, I'm not expecting anything, but maybe it is at least some nice inspiration.
Thank you for your time and attention! ✌️