0.0.7 • Published 8 months ago

@oasis-cloud/which-one v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

which one

List the scripts in package.json and choose one to execute.

Read this in other languages: English | 简体中文

Install

npm install -D @oasis-cloud/which-one

Example

└─> wo 
? which one › - Use arrow-keys. Return to submit.
❯   test
    color

or

└─> wo c
? which one › - Use arrow-keys. Return to submit.
❯   color
    demo:c

If only one script exists after filtering scripts, it is executed directly.

└─> wo color

Regular Filtering

Regular matching is filtered using global matching that ignores case.

│which-one on  main 
└─> wo c
? which one › - Use arrow-keys. Return to submit.
❯   color
│which-one on  main 
└─> wo 'd.*:c'
? which one › - Use arrow-keys. Return to submit.
❯   demo:c

Options

-r

Supports the -r option, which executes the previous script.

│which-one on  main 
└─> wo 'd.*:c'
? which one › - Use arrow-keys. Return to submit.
❯   demo:c

# will execute demo:c

│which-one on  main 
└─> wo -r
0.0.7

8 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago