CommandBase Interface
Namespace: DensoCreate.Cli.Framework
Description
This is a base class that provides command structure and common processing.
Inherit Base
| Name | Description |
|---|---|
| CommandBase<TArgument, TOption> | This is a base class that provides command structure and common processing. |
Property
| Name | Description |
|---|---|
| Aliases | Gets the aliases for the command. |
| Arguments | Gets the command arguments. |
| Description | Gets or sets the command description. |
| Extension | Gets the target extension. |
| HandlerName | Gets the command handler name. |
| IsHidden | Gets or sets whether the command is hidden. If set to true, it will not be displayed with the --help option. |
| Name | Gets or sets the command name. |
| Options | Gets the command options. |
| SubCommands | Gets the subcommands. |
Method
| Name | Description |
|---|---|
| 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. |
| AttachExtension | Associates with an extension. |
| GetService<T> | Gets the service managed by the extension. |
| LogCritical | Writes a fatal error log message. |
| LogDebug | Writes a debug log message. |
| LogError | Writes an error log message. |
| LogInformation | Writes an information log message. |
| LogTrace | Writes a trace log message. |
| LogWarning | Writes a warning log message. |
| RegisterHandler | Registers a command handler. |