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

feat: add word prefixes, closes #24 #34

Merged
merged 3 commits into from
Mar 10, 2021
Merged

feat: add word prefixes, closes #24 #34

merged 3 commits into from
Mar 10, 2021

Conversation

bahmutov
Copy link
Owner

If your scripts have separate words, you can specify prefix for each one. For example, the package.json file below has 3 scripts

{
  "scripts": {
    "cypress:open": "cypress open",
    "cypress:run": "cypress run",
    "cypress:run:record": "cypress run --record"
  }
}

You can quickly open Cypress using

nr c:o
# same as
nr c-o
# same as
nr cy-open

Characters : and - are interchangeable and can be used in the prefix or in the script names.

In the above situation

nr c-r
# returns both "cypress:run" and "cypress:run:record"
nr c-r-r
# executes "cypress:run:record"

@bahmutov bahmutov merged commit eba5855 into master Mar 10, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: add support for command with ':'
1 participant