dthree / dthree/vorpal

Command.chain / Command.bind / Command.use

Open
#198 2 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.