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 Unification: Fix miscellaneous typos #1032

Merged
merged 2 commits into from
Oct 4, 2021
Merged

CLI Unification: Fix miscellaneous typos #1032

merged 2 commits into from
Oct 4, 2021

Conversation

brianstrauch
Copy link
Member

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

Fix a few miscellaneous typos found while testing the demo. I need to do a better job of unifying PRs once they're merged into master and then main.

@brianstrauch brianstrauch requested a review from a team as a code owner October 4, 2021 21:56
@@ -186,11 +186,11 @@ func NewKafkaProduceCommand(prerunner cmd.PreRunner) *cobra.Command {
},
examples.Example{
Text: "Produce Avro data to a topic called `mytopic5` in Confluent Cloud. Assumes topic has already been created, and Confluent Schema Registry is listening at `http://localhost:8081`.",
Code: `confluent local services kafka produce mytopic5 --cloud --config /tmp/myconfig.properties --value-format avro --property \\\nvalue.schema='{"type":"record","name":"myrecord","fields":[{"name":"f1","type":"string"}]}' \\\n--property schema.registry.url=http://localhost:8081`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. I think I wrote this as an intern.

Copy link
Contributor

@mtodzo mtodzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments

internal/cmd/kafka/command_link.go Outdated Show resolved Hide resolved
Example: examples.BuildExampleString(
examples.Example{
Text: "List all mirrors in the cluster or under the given cluster link.",
Code: "ccloud kafka mirror list --link <link> --mirror-status <mirror-status>",
Text: "List all active mirror topics under `my-link`.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mirrored?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first thought too, but "mirror topics" is the right term: https://docs.confluent.io/platform/current/multi-dc-deployments/cluster-linking/mirror-topics-cp.html

internal/cmd/kafka/command_mirror.go Outdated Show resolved Hide resolved
internal/cmd/kafka/command_mirror.go Show resolved Hide resolved
internal/cmd/kafka/command_mirror.go Show resolved Hide resolved
@@ -146,16 +145,16 @@ func (c *mirrorCommand) init() {
c.AddCommand(createCmd)

promoteCmd := &cobra.Command{
Use: "promote <destination-topic-1> <destination-topic-2> ... <destination-topic-N> --link <link>",
Short: "Promote the mirror topics.",
Use: "promote <destination-topic-1> <destination-topic-2> ... <destination-topic-N> --link my-link",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use the [] here for optional args?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well i guess the first arg is required, so maybe <> is best

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this way is good for now. Although in the future we should decide on a separate grammar for cases like this.

internal/cmd/kafka/command_mirror.go Outdated Show resolved Hide resolved
@brianstrauch brianstrauch merged commit a03483b into main Oct 4, 2021
@brianstrauch brianstrauch deleted the demo-fixes branch October 4, 2021 23:09
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

2 participants