Skip to content

gunshi / default / Command

Interface: Command<A>

Command interface.

Type Parameters

Type ParameterDefault type
A extends ArgsArgs

Properties

PropertyTypeDescription
args?ACommand arguments. Each argument can include a description property to describe the argument in usage.
description?stringCommand description. It's used to describe the command in usage and it's recommended to specify.
examples?| string | CommandExamplesFetcher<A, ArgValues<A>>Command 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.
resource?CommandResourceFetcher<A, ArgValues<A>>Command resource fetcher.
run?CommandRunner<A>Command runner. it's the command to be executed
toKebab?booleanWhether to convert the camel-case style argument name to kebab-case. If you will set to true, All Command.args names will be converted to kebab-case.

Released under the MIT License.