Skip to content
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

Merged
merged 9 commits into from
Aug 12, 2021

Conversation

MuweiHe
Copy link
Contributor

@MuweiHe MuweiHe commented Jul 28, 2021

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?

    • yes: ok
  2. Did you add/update any commands that accept secrets as args/flags?

    • no: ok

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

@MuweiHe MuweiHe self-assigned this Jul 28, 2021
@MuweiHe MuweiHe requested a review from a team as a code owner July 28, 2021 19:02
internal/cmd/connector/command_test.go Outdated Show resolved Hide resolved
internal/cmd/connector/command_test.go Outdated Show resolved Hide resolved
internal/cmd/connector/command_test.go Outdated Show resolved Hide resolved
internal/cmd/connector/command_test.go Show resolved Hide resolved
test/fixtures/output/connector/connector-help.golden Outdated Show resolved Hide resolved
Copy link
Contributor

@DABH DABH left a 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 👍

Copy link
Member

@brianstrauch brianstrauch left a 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.

@MuweiHe
Copy link
Contributor Author

MuweiHe commented Aug 10, 2021

changing the naming of ccloud connector cmds to ccloud connect, and ccloud connector catalog to ccloud connect plugin (describe/list)

@MuweiHe MuweiHe changed the title CLI-1075 Rename connector-catalog command so that catalog is sub-command of connector CLI-1075 Rename connector cmds to connect and connector-catalog to connect plugin Aug 10, 2021
Copy link
Contributor

@DABH DABH left a 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!

internal/cmd/connect/command_test.go Outdated Show resolved Hide resolved
Comment on lines 28 to 31
var (
catalogFields = []string{"PluginName", "Type"}
catalogStructureLabels = []string{"plugin_name", "type"}
pluginFields = []string{"PluginName", "Type"}
pluginStructureLabels = []string{"plugin_name", "type"}
)
Copy link
Member

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.

internal/cmd/connect/command_plugin.go Outdated Show resolved Hide resolved
internal/cmd/connect/command_plugin.go Outdated Show resolved Hide resolved
test/fixtures/output/connect/connect-help.golden Outdated Show resolved Hide resolved
@MuweiHe MuweiHe merged commit 7778802 into 2.0 Aug 12, 2021
@MuweiHe MuweiHe deleted the CLI-1075 branch August 12, 2021 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants