-
Notifications
You must be signed in to change notification settings - Fork 103
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 Instance Sorting #146
CLI Instance Sorting #146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for the significant changes and your persistence, Rodrigo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good! Mainly, just 1 comment on the sorter pkg. The rest looks good! nice work!
Co-authored-by: Brandon Wagner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one more small comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! nice work!
Very useful feature, any ETA for the release? |
@asychev hopefully by tomorrow! |
Issue #, if available: #21, #52, #122
Description of changes:
Implemented instance type sorting for CLI users through the
cmd/pkg/sorter
package. Users can specify either a json path to a field in theinstancetypes.Details
struct or they can use one of the hard-coded shorthand values, which use the quantity CLI flags as keys, in order to specify what field to sort instance types by.json path parsing is done through the use of the following library: https://github.com/oliveagle/jsonpath
This PR is made in response to the following comment in another PR: #138 (comment)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.