8000 Feature: Allow scripts to be excluded from interactive menu by mischah · Pull Request #32 · ruyadorno/ntl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature: Allow scripts to be excluded from interactive menu #32

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

Closed
wants to merge 7 commits into from

Conversation

mischah
Copy link
Contributor
@mischah mischah commented Feb 22, 2019

Hej @ruyadorno,

here is the pull request which closes #8.

As said:

We have decided to name the option -e --> --exclude to prevent an alias name clash with -i -> --info.

Here’s a feature summary taken from the updated README:

Exclude scripts

Example package.json:

{
 "scripts": {
   "test": "jest --coverage",
   "test:watch": "jest --coverage --watchAll",
   "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
   "tasks": "ntl --exclude coverall tasks"
 }
}

You can define a list of scripts to be excluded from the interactive menu:

$ ntl --exclude coverall tasks
✔  Npm Task List - v3.0.0
? Select a task to run: (Use arrow keys)
❯ test
 test:watch
 coveralls

You can also use a wildcard character to exclude multiple scripts with one string:

$ ntl --exclude "test*"
✔  Npm Task List - v3.0.0
? Select a task to run: (Use arrow keys)
❯ coveralls
 tasks