Skip to content

docs: improve help text in commands#281

Merged
craicoverflow merged 6 commits intomainfrom
help-text
Jan 25, 2021
Merged

docs: improve help text in commands#281
craicoverflow merged 6 commits intomainfrom
help-text

Conversation

@craicoverflow
Copy link
Copy Markdown
Contributor

No description provided.

@wtrocki
Copy link
Copy Markdown
Collaborator

wtrocki commented Jan 25, 2021

Looking at this now.. Will need some time


Pass the –id flag to specify which instance you would like to view.

If the –id flag is not passed then the selected Kafka instance will be
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[Optional] -id flag when reading in cli blends with text more than "id" flag. or something :D

Log in to the RHOAS CLI
Log in securely to RHOAS using your web browser.

Your web browser will open automatically where you can securely enter
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Your web browser will open automatically where you can securely enter
Your web browser will open a new tab automatically where you can securely enter

@craicoverflow
Copy link
Copy Markdown
Contributor Author

Yes but no not merge, still adding to it.


Generate new SASL/PLAIN credentials for a service account and revoke the
old credentials
Reset the SASL/PLAIN credentials for a service account.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Reset the SASL/PLAIN credentials for a service account.
Reset the service credentials for a service account.

This is not only about Managed Kafka

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah but they are still SASL/PLAIN credentials. Am I wrong in saying this is not a specific Kafka standard??

https://tools.ietf.org/html/rfc4616

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Completely irelevant. Service account is generic. It is just implementation details that they could be used to reach out managed kafka, but this sentence will outdate once other services will be added and also will be reachable using the same credentials.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point.

old credentials
Reset the SASL/PLAIN credentials for a service account.

This command will generate a new SASL/PLAIN password for a service
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

Long: heredoc.Doc(`
Permanently delete a Kafka instance.

You can only delete Kafka instances that you created.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
You can only delete Kafka instances that you created.

Let's not bake in current qa env limitations to the CLi that will be typically used with production where this assumption is not true.

Long: heredoc.Doc(`
View all configuration fields and their values for a Kafka instance.

Pass the --id flag to specify which instance you would like to view.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above -id blends in.

Copy link
Copy Markdown
Contributor Author

@craicoverflow craicoverflow Jan 25, 2021

Choose a reason for hiding this comment

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

Not sure what you mean by bends in

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"-id" to expose it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I still don't fully understand. What is the suggested action?

$ rhoas kafka status

# view the status of a Kafka instance using its ID
$ rhoas kafka status --id "1nYlgkt87xelHT1wnOdEyGhFhaO"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is strange. Should status show only used kafka. Then how is that different than describe then? Confusion can happen

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is very little difference between "status" and "describe". I will create an issue to discuss its value.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

when I think about it yes.. That is the main confusion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Issue created: #283

Long: heredoc.Doc(`
Select a Kafka instance and set it in the config as the current Kafka instance.

Once a Kafka instance is in use, it becomes the "current" instance.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Once a Kafka instance is in use, it becomes the "current" instance.
Once a Kafka instance is in use, it will be saved in configuration and used with commands like topics etc..

@wtrocki
Copy link
Copy Markdown
Collaborator

wtrocki commented Jan 25, 2021

@craicoverflow In some cases I have pointed issues on docs and some cases in the code. Sorry for confusion. Generally all things are suggestions (subjective opinion from outsider person).

Checked locally. Printouts looks good!

@craicoverflow craicoverflow merged commit e8dce46 into main Jan 25, 2021
@craicoverflow craicoverflow deleted the help-text branch January 25, 2021 16:05
@craicoverflow craicoverflow linked an issue Jan 28, 2021 that may be closed by this pull request
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.

Review In-CLI help text

2 participants