dthree / dthree/vorpal

How to make sub commands without the multi-word command feature?

Open
#347 0 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

The docs aren't too clear. Maybe it doesn't exist.

I know about multi-word commands, https://github.com/dthree/vorpal/wiki/api-%7C-vorpal.command#multi-word-commands.

But what I'm wondering about is something more along the lines of describing commands with nested functions, or with file hierarchy.

This is the feature in Yargs:

- example with folder hierarchy: https://github.com/yargs/yargs/blob/master/docs/advanced.md#example-command-hierarchy-using-commanddir
- example with nested functions: https://github.com/yargs/yargs/issues/225#issuecomment-128532719

Is multi-word the only way in Vorpal?

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.