Class Command
Inheritance
System.Object
Command
Assembly: Mars.Components.dll
Syntax
public class Command : object
Constructors
Command(String, String)
Declaration
protected Command(string name, string help = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
help |
|
Properties
CommandSet
Declaration
public CommandSet CommandSet { get; }
Property Value
Help
Declaration
public string Help { get; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Options
Declaration
public OptionSet Options { get; set; }
Property Value
Run
Declaration
public Action<IEnumerable<string>> Run { get; set; }
Property Value
Type |
Description |
Action<IEnumerable<System.String>> |
|
Methods
Invoke(IEnumerable<String>)
Declaration
public virtual int Invoke(IEnumerable<string> arguments)
Parameters
Type |
Name |
Description |
IEnumerable<System.String> |
arguments |
|
Returns
Type |
Description |
System.Int32 |
|