Command.chain / Command.bind / Command.use
Open
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 278
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to request a simple feature that will make Vorpal a bit more composable.
```js
const pizzaOptions = vorpal =>
vorpal
.option('-p, --pepperoni', 'pepperoni topping')
.option('-o, --olive', 'olive topping')
vorpal
.command('pizza')
.use(pizzaOptions)
.action( /* ... */ )
```
It's effectively a monadic bind.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.