0.0.7 • Published 2 years ago
@oasis-cloud/which-one v0.0.7
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-oneExample
└─> wo
? which one › - Use arrow-keys. Return to submit.
❯ test
coloror
└─> wo c
? which one › - Use arrow-keys. Return to submit.
❯ color
demo:cIf only one script exists after filtering scripts, it is executed directly.
└─> wo colorRegular 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:cOptions
-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