Show / Hide Table of Contents

Method Run

| Edit this page View Source

Run(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.
| Edit this page View Source

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)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾