Skip to content

Multi-command #1

Open
Open
@rclark

Description

@rclark

👋

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions