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

Edit dart pub token page #5717

Merged
merged 7 commits into from
Apr 26, 2024
Merged

Edit dart pub token page #5717

merged 7 commits into from
Apr 26, 2024

Conversation

atsansone
Copy link
Contributor

Fixes #3729

@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Apr 12, 2024

Visit the preview URL for this PR (updated for commit 506e088):

https://dart-dev--pr5717-fix-3729-y5ryp88s.web.app


The tokens are stored in a
[user-wide config dir]({{site.repo.dart.org}}/cli_util/blob/71ba36e2554f7b7717f3f12b5ddd33751a4e3ddd/lib/cli_util.dart#L88-L118).
It stores these tokens in a [user-wide config directory][config-dir].

It has three subcommands: `add`, `list` and `remove`.
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (lite): This gets tricky with avoiding passive voice, but could we say something besides "It" again here (the previous sentence also starts with "It")

  • dart pub token has three subcommands....
  • The subcommand has three subcommands of its own...

I don't have any good ideas, just a thought.

@atsansone
Copy link
Contributor Author

@MaryaBelanger : Thanks for this! I'll update this soon.

@atsansone
Copy link
Contributor Author

@MaryaBelanger : PTAL. Thanks!

Tony Sansone and others added 4 commits April 24, 2024 15:49
Co-authored-by: Marya <111139605+MaryaBelanger@users.noreply.github.com>
Co-authored-by: Marya <111139605+MaryaBelanger@users.noreply.github.com>
Copy link
Contributor

@MaryaBelanger MaryaBelanger left a comment

Choose a reason for hiding this comment

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

As I pointed out in several suggestions, I don't think "invoke" is the right word to use for running a command.

  • It's needlessly complex; "run" is universally understood
  • None of the other command docs use it in their instructions
  • If you look across the dart docs, "invoke" is defined as and always used to describe calling a method or some kind of class relationship. Using it for CLI is an unnecessary overload

Most of the other CLI docs just say "use the command ...".

Approving for the sake of progression.

@atsansone
Copy link
Contributor Author

@MaryaBelanger : I agree with your assessment. I made the changes.

@atsansone atsansone merged commit 59d52df into dart-lang:main Apr 26, 2024
10 checks passed
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.

Clean up the 'dart pub token' page
3 participants