Skip to content

feat(cli): add short option -w for watch mode#482

Merged
chenjiahan merged 1 commit intomainfrom
cli_watch_short_0815
Aug 15, 2025
Merged

feat(cli): add short option -w for watch mode#482
chenjiahan merged 1 commit intomainfrom
cli_watch_short_0815

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Update CLI command and documentation to support -w as shorthand for --watch flag.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@chenjiahan chenjiahan requested review from 9aoy and Copilot August 15, 2025 08:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a short option -w as an alias for the existing --watch flag in the CLI, making it more convenient for users to enable watch mode when running tests.

  • Added -w short option for the --watch flag in the CLI command configuration
  • Updated documentation in both English and Chinese to reflect the new short option

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/core/src/cli/commands.ts Added -w short option to the watch flag configuration
website/docs/en/guide/basic/cli.mdx Updated English documentation to show -w, --watch option
website/docs/zh/guide/basic/cli.mdx Updated Chinese documentation to show -w, --watch option

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 15, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 2a9a3ad
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/689eeb87b5d39d0008984156
😎 Deploy Preview https://deploy-preview-482--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chenjiahan chenjiahan merged commit cc8c981 into main Aug 15, 2025
17 checks passed
@chenjiahan chenjiahan deleted the cli_watch_short_0815 branch August 15, 2025 08:16
@9aoy 9aoy mentioned this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants