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

[Wrangler] Update the commands list #3735

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

lrapoport-cf
Copy link
Contributor

@lrapoport-cf lrapoport-cf commented Aug 10, 2023

What this PR solves / how to test:

This PR cleans up and standardises the look and feel of all wrangler commands as displayed by wrangler --help and wrangler <cmd> --help.

Please refer to original designs here Screenshot 2024-06-19 at 20 38 13

Before
Screenshot 2024-02-26 at 18 50 41

After
Screenshot 2024-06-19 at 20 32 12

Here is the list of all public facing wrangler commands, in their updated version:

**wrangler deployments --help** Screenshot 2024-06-19 at 19 58 58
**wrangler deployments --x-versions --help** Screenshot 2024-06-19 at 19 59 30
**npx wrangler rollback --help** Screenshot 2024-06-19 at 20 12 21
**npx wrangler rollback --x-versions --help** Screenshot 2024-06-19 at 20 13 05
**npx wrangler versions --x-versions --help** Screenshot 2024-06-19 at 20 14 33
**wrangler triggers --x-versions --help** Screenshot 2024-06-19 at 20 15 36
**wrangler kv --help** Screenshot 2024-06-19 at 20 18 59
**wrangler queues --help** Screenshot 2024-06-19 at 20 18 25
**wrangler r2 --help** Screenshot 2024-06-19 at 20 19 31
**wrangler d1 --help** Screenshot 2024-06-19 at 20 21 44
**wrangler vectorize --help** Screenshot 2024-06-19 at 20 22 49
**wrangler hyperdrive --help** Screenshot 2024-06-19 at 20 23 34
**wrangler pages --help** Screenshot 2024-06-19 at 20 24 30
**wrangler mtls-certificate --help** Screenshot 2024-06-19 at 20 25 22
**wrangler cloudchamber --help** Screenshot 2024-06-19 at 20 26 20
**wrangler pubsub --help** Screenshot 2024-06-19 at 20 27 38
**wrangler dispatch-namespace --help** Screenshot 2024-06-19 at 20 28 30
**wrangler ai --help** Screenshot 2024-06-19 at 20 29 44
**wrangler login --help** Screenshot 2024-06-19 at 20 30 29

Author has addressed the following

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2023

🦋 Changeset detected

Latest commit: a61500f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
wrangler Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2023

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-wrangler-3735

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/3735/npm-package-wrangler-3735

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-wrangler-3735 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-create-cloudflare-3735 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-cloudflare-kv-asset-handler-3735
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-miniflare-3735
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-cloudflare-pages-shared-3735
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9601015901/npm-package-cloudflare-vitest-pool-workers-3735

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.61.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240610.1
workerd 1.20240610.1 1.20240610.1
workerd --version 1.20240610.1 2024-06-10

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Attention: Patch coverage is 98.30508% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.44%. Comparing base (2789f26) to head (00c640f).
Report is 296 commits behind head on main.

Current head 00c640f differs from pull request most recent head 8bd2bc7

Please upload reports for the commit 8bd2bc7 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3735      +/-   ##
==========================================
+ Coverage   72.44%   75.44%   +2.99%     
==========================================
  Files         331      223     -108     
  Lines       17298    12332    -4966     
  Branches     4422     3188    -1234     
==========================================
- Hits        12532     9304    -3228     
+ Misses       4766     3028    -1738     
Files Coverage Δ
packages/wrangler/src/ai/index.ts 100.00% <ø> (ø)
packages/wrangler/src/constellation/index.ts 100.00% <100.00%> (ø)
packages/wrangler/src/hyperdrive/index.ts 100.00% <ø> (ø)
packages/wrangler/src/index.ts 83.72% <100.00%> (-6.59%) ⬇️
packages/wrangler/src/kv/index.ts 100.00% <ø> (ø)
packages/wrangler/src/pages/index.ts 84.00% <100.00%> (-2.21%) ⬇️
...wrangler/src/queues/cli/commands/consumer/index.ts 100.00% <ø> (+15.38%) ⬆️
packages/wrangler/src/queues/cli/commands/index.ts 100.00% <100.00%> (ø)
packages/wrangler/src/secret/index.ts 88.51% <ø> (+5.18%) ⬆️
packages/wrangler/src/vectorize/index.ts 100.00% <ø> (ø)
... and 1 more

... and 237 files with indirect coverage changes

@lrapoport-cf lrapoport-cf marked this pull request as ready for review October 24, 2023 18:58
@lrapoport-cf lrapoport-cf requested review from a team as code owners October 24, 2023 18:58
@lrapoport-cf lrapoport-cf marked this pull request as draft October 24, 2023 18:59
@lrapoport-cf lrapoport-cf marked this pull request as ready for review October 30, 2023 13:55
@RamIdeas
Copy link
Contributor

RamIdeas commented Nov 3, 2023

Great effort combing through all of this!

A couple subjective points:

  • I think the emojis should have a space after them before the text begins
  • I think using the same emoji for all commands reduces their "fun" quotient (I bet I sound fun right now 👀) and I don't think the consistency there is of any benefit
  • I like the introduction of a consistent emoji for all experimental commands – maybe we could use a different one that's less subtle?
@lrapoport-cf
Copy link
Contributor Author

@RamIdeas thanks for the feedback! the emoji changes are based on a proposal from the design team -- i'll get them looped into the discussion. for my two cents, i agree that the consistency has a lower fun quotient 😄, but i do think it adds some informational value that the more assorted collection lacks: it signals that there is a loose relationship between the items in the different emoji groups, and also distracts less from the command descriptions.

@lrapoport-cf
Copy link
Contributor Author

cc @Meahaa

@Meahaa
Copy link

Meahaa commented Nov 3, 2023

Excellent points let's:

  1. Add the space
  2. Keep the emoji's agree it's more fun to have them and we can take a pass in the future to make sure they actually make sense
  3. I'm not following too clearly here - I liked the orange text because it's a nice brand call out
@RamIdeas
Copy link
Contributor

RamIdeas commented Nov 3, 2023

  1. I'm not following too clearly here - I liked the orange text because it's a nice brand call out

I think you're referring to the "open beta" text in the figma design doc which I think being on-brand orange is great!

I was referring to the ⚑ flag emoji which blends into the text a little – a non-exhaustive set of alternatives to consider:

  • 🧪 test tube
  • 👩‍🔬 scientist
  • 🥼 lab coat
  • 🧫 petri dish
  • 🔬 microscope
@lrapoport-cf lrapoport-cf added the awaiting reporter response Needs clarification or followup from OP label Nov 8, 2023
@petebacondarwin
Copy link
Contributor

@Meahaa - can you take a look at @RamIdeas' last comment? Should we update that last emoji?
@lrapoport-cf - can we rebase and fix the conflicts while updating to fit the agreed points between @RamIdeas and @Meahaa ?

@Meahaa
Copy link

Meahaa commented Feb 20, 2024

ooh I like the test tube let's go with that!

@petebacondarwin petebacondarwin removed the awaiting reporter response Needs clarification or followup from OP label Feb 21, 2024
@CarmenPopoviciu
Copy link
Contributor

CarmenPopoviciu commented Feb 26, 2024

Excellent points let's:

  1. Add the space
  2. Keep the emoji's agree it's more fun to have them and we can take a pass in the future to make sure they actually make sense
  3. I'm not following too clearly here - I liked the orange text because it's a nice brand call out

@Meahaa I am taking over this PR to cross it over the finish line. Can you please clarify point 2 for me? Do we keep the current emojis as they are, or do we change them as per design?

@CarmenPopoviciu
Copy link
Contributor

CarmenPopoviciu commented Feb 26, 2024

@Meahaa @RamIdeas @petebacondarwin I've added a before and after screenshot to the description of this PR. Before reviewing the code, is there consensus that, visually, things are as we want them to be? <3

@petebacondarwin
Copy link
Contributor

I read that @Meahaa wrote:

Keep the emoji's agree it's more fun to have them and we can take a pass in the future to make sure they actually make sense

So I think that means we are all agreed that we should not switch out the mix of emojis for the boring few?

@Meahaa
Copy link

Meahaa commented Mar 6, 2024

Yup! Let's just keep the current emojis for now! Agree with the fact that they make them more fun for now and we can always update to make them even better later!

@CarmenPopoviciu CarmenPopoviciu force-pushed the lrapoport/help-cleanup branch 2 times, most recently from fefdde5 to 902ec93 Compare June 19, 2024 19:16
@@ -18,13 +18,13 @@ export default function registerVersionsDeploymentsSubcommands(
versionDeploymentsYargs
.command(
"list",
"Displays the 10 most recent deployments of your Worker [beta]",
Copy link
Contributor

@CarmenPopoviciu CarmenPopoviciu Jun 19, 2024

Choose a reason for hiding this comment

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

removing, as the beta nature of these commands is signalled at command level, which should be enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

cc// @RamIdeas

@@ -204,33 +210,34 @@ export function createCLIParser(argv: string[]) {
})
.scriptName("wrangler")
.wrap(null)
.locale("en_US")
Copy link
Contributor

Choose a reason for hiding this comment

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

forcing locale here, since we don't support anything other than en. This also ensures we don't run into any unexpected behaviour when we call wrangler.updateStrings() further down

packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/utils/stdout-styling.ts Outdated Show resolved Hide resolved
packages/wrangler/src/utils/stdout-styling.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
packages/wrangler/src/index.ts Outdated Show resolved Hide resolved
lrapoport-cf and others added 2 commits June 20, 2024 18:20
This commit cleans up and standardizes the look and
of all `wrangler` commands as displayed by
`wrangler --help` and `wrangler <cmd> --help`.
@CarmenPopoviciu CarmenPopoviciu merged commit 9c7df38 into main Jun 20, 2024
19 checks passed
@CarmenPopoviciu CarmenPopoviciu deleted the lrapoport/help-cleanup branch June 20, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants