-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor instance filters #283
base: main
Are you sure you want to change the base?
Conversation
I won't merge it without tests ;) |
cmd/aem/instance_list_int_test.go
Outdated
} | ||
|
||
func TestInstanceByURL(t *testing.T) { | ||
testInstanceList(t, []string{"instance", "list", "-U", "http://admin:[email protected]:4502", "-U", "http://admin:[email protected]:4503", "-U", "test_author=http://admin:[email protected]:4502", "--output-value", "NONE"}, true, []string{"remote_adhoc_1", "remote_adhoc_2", "test_author"}) |
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.
much better with adhoc urls ;) thx
cmd/aem/root.go
Outdated
_ = cv.BindPFlag("instance.filter.publishes", cmd.PersistentFlags().Lookup("instance-publish")) | ||
|
||
cmd.MarkFlagsMutuallyExclusive("instance-author", "instance-publish") | ||
cmd.MarkFlagsMutuallyExclusive("instance-url", "instance-id") |
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 is wrong; you could always define all urls and then filter one to be used only with instance-id
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.
instance-url and instance-id are not mutually exclusive
No description provided.