Method Run
| Edit this page View SourceRun(string[])
The function that will be called when the user runs your console command, with space-delimited arguments.
Declaration
public virtual void Run(string[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | args | The arguments the user types, with spaces being the delimiter. |
Run(string[], Terminal)
The function that will be called when the user runs your console command, with space-delimited arguments and
a context Terminal object (Console or Chat). Use context?.AddString() to write to the respective
output.
Declaration
public virtual void Run(string[] args, Terminal context)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | args | The arguments the user types, with spaces being the delimiter. |
| Terminal | context | Terminal from which this command is run (Console or Chat window) |