-
Notifications
You must be signed in to change notification settings - Fork 24
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
Instance ls/inspect/tag CLI #352
Instance ls/inspect/tag CLI #352
Conversation
a70b54f
to
6b1ea40
Compare
return instance, nil | ||
} | ||
|
||
func findInstancesByTags(tags []types.Tag, instances []types.Instance) []types.Instance { |
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.
We should probably have an API endpoint for this feature in the near future.
|
||
instances := customer.Instances | ||
if len(r.args.instanceListTags) > 0 { | ||
tags, err := parseTags(r.args.instanceListTags) |
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.
This comment applies to all instances of parseTags
. What is your opinion on case sensitive of tags? Is Name=hello
same as Name=HELLO
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.
Updated the name logic to be case insensitive to match FE. But everywhere else tags are case sensitive right now.
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.
It the same way in CMX. We should probably come up with constraints for this feature in another story.
Nice! |
Just one thought, I am assuming the JSON output works as well for this feature? In that |
6b1ea40
to
68b89d9
Compare
It works. That affects printf functions but json package uses |
replicated instance ls/inspect/tag commands
replicated instance ls
replicated instance inspect
replicated instance tag