-
Notifications
You must be signed in to change notification settings - Fork 10
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-1075 Rename connector cmds to connect and connector-catalog to connect plugin #948
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.
Will defer to @brianstrauch on this PR review 👍
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.
Leaving this open for now, since we may change this command to confluent connect plugin
to maintain consistency with other commands.
changing the naming of |
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 looks good to me (once CI passes) up to one minor question. Thank you!
var ( | ||
catalogFields = []string{"PluginName", "Type"} | ||
catalogStructureLabels = []string{"plugin_name", "type"} | ||
pluginFields = []string{"PluginName", "Type"} | ||
pluginStructureLabels = []string{"plugin_name", "type"} | ||
) |
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.
Unrelated, but we should get into the habit of placing these variables in the function they're being used in. That way, we can just call them fields
or structureLabels
and we won't have to change their name.
Checklist
[CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?
Did you add/update any commands that accept secrets as args/flags?
What
For CLI 2.0, we want to make a breaking change:
ccloud connector-catalog
should not be a top-level command. It naturally falls under the auspices of "Connect comamnds", so, we should rename this to e.g.ccloud connector catalog
References
Test&Review