Skip to content

Tagged Commands #14

@coreybutler

Description

@coreybutler

As I've used this library to build applications, I've recognized a need for experimental commands, beta commands, and even hidden commands (hidden from help).

It would be nice to have a "tag" or some other identifier to identify which commands are experimental, which should be hidden, etc.

One possible implementation is:

new Command({
  name: 'cmd',
  tags: ['beta'],
  async handler () {...}
})

Special tags may have special documentation/help features:

  • hidden: available, but does not show up
  • ignore: completely ignore the command (won't run)
  • experimental: prefixes description with EXPERIMENTAL.
  • deprecated: prefixes description with DEPRECATED.

Tags should be exposed to command handlers and directly through the shell, making it possible for developers to create custom functionality for tagged commands.

Please use the reactions to cast a vote in favor of or against this feature suggestion »

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions