Skip to main content

CommandBase Interface

Namespace: DensoCreate.Cli.Framework

Description

This is a base class that provides command structure and common processing.

Inherit Base

NameDescription
CommandBase<TArgument, TOption>This is a base class that provides command structure and common processing.

Property

NameDescription
AliasesGets the aliases for the command.
ArgumentsGets the command arguments.
DescriptionGets or sets the command description.
ExtensionGets the target extension.
HandlerNameGets the command handler name.
IsHiddenGets or sets whether the command is hidden. If set to true, it will not be displayed with the --help option.
NameGets or sets the command name.
OptionsGets the command options.
SubCommandsGets the subcommands.

Method

NameDescription
AddArgument<T>Registers a command argument.
AddOption<T>(string,string,bool)Registers an option.
AddOption<T>(string,string,string,bool)Registers an option.
[AddOption<T>(string[Display],string,bool)](methods/AddOptionT-3.md)Registers an option.
AddSubCommand<T>Adds a subcommand.
AttachExtensionAssociates with an extension.
GetService<T>Gets the service managed by the extension.
LogCriticalWrites a fatal error log message.
LogDebugWrites a debug log message.
LogErrorWrites an error log message.
LogInformationWrites an information log message.
LogTraceWrites a trace log message.
LogWarningWrites a warning log message.
RegisterHandlerRegisters a command handler.