Open
Description
👋
From ur blog:
Supporting multiple commands as multiple functions
Curious how you'd think about structuring this? Something like this?
/**
* top-level help here
*/
module.exports = {
/**
* one command's help
*/
commandA: function(a, b, c) { ... },
/**
* another command's help
*/
commandB: function(a, b, c) { ... }
}
Would this then support:
cli --help
cli commandA --help
cli commandB --help
Could the nesting go into deeper sub-commands?
Metadata
Metadata
Assignees
Labels
No labels