Skip to content

gunshi / default / Command

Interface: Command<Options>

Command interface.

Type Parameters

Type ParameterDefault type
Options extends ArgOptionsArgOptions

Properties

PropertyTypeDescription
description?stringCommand description. It's used to describe the command in usage and it's recommended to specify.
examples?stringCommand examples. examples of how to use the command.
name?stringCommand name. It's used to find command line arguments to execute from sub commands, and it's recommended to specify.
options?OptionsCommand options. Each option can include a description property to describe the option in usage.
resource?CommandResourceFetcher<Options, ArgValues<Options>>Command resource fetcher.
runCommandRunner<Options>Command runner. it's the command to be executed

Released under the MIT License.