C# Класс AdvancedLauncher.SDK.Management.Commands.AbstractExtendedCommand

Extended ICommand base implementation with subcommands support
Наследование: AbstractCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic

Main constructor

DoCommand ( string args ) : bool

Root command action

Защищенные методы

Метод Описание
CheckSubCommand ( string command ) : bool

Checks if specified command defined in subcommands list

CreateCommands ( ) : SubCommand>.Dictionary

Subcommand generation method. You must define your subcommands here.

GetCommandList ( ) : List

Returns help list of all available subcommands

LogInfo ( string value ) : void

You must define console output method here (usually ILogManager.Info(object))

Приватные методы

Метод Описание
CheckInput ( string args ) : bool

Input validation

HelpCommand ( string args ) : bool

Prints help

Описание методов

AbstractExtendedCommand() публичный Метод

Main constructor
public AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic
commandName string Base command name to execute. See
commandDescription string Command description. See
Результат System.Collections.Generic

CheckSubCommand() защищенный Метод

Checks if specified command defined in subcommands list
protected CheckSubCommand ( string command ) : bool
command string Command name
Результат bool

CreateCommands() защищенный абстрактный Метод

Subcommand generation method. You must define your subcommands here.
protected abstract CreateCommands ( ) : SubCommand>.Dictionary
Результат SubCommand>.Dictionary

DoCommand() публичный Метод

Root command action
public DoCommand ( string args ) : bool
args string Input arguments
Результат bool

GetCommandList() защищенный Метод

Returns help list of all available subcommands
protected GetCommandList ( ) : List
Результат List

LogInfo() защищенный абстрактный Метод

You must define console output method here (usually ILogManager.Info(object))
protected abstract LogInfo ( string value ) : void
value string Value you want to log
Результат void