Class ShellCommandGroup
Commands under one word in a DarkEffekt.Terminal.DemoShell, from
DarkEffekt.Terminal.DemoShell.AddGroup(System.String%2cSystem.String). The word alone lists them; the
word and a command’s name runs it with the rest of the line.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class ShellCommandGroupProperties
Section titled “Properties”public string Name { get; }public string Help { get; }Methods
Section titled “Methods”AddCommand(string, string, Action<string>, string)
Section titled “AddCommand(string, string, Action<string>, string)”Adds a command to the group. The usage goes without the group’s word, “noise LEVEL [SECONDS]”; the listing adds it. A command added under an existing name replaces it.
public void AddCommand(string name, string help, Action<string> run, string usage = null)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
name |
System.String |
help |
System.Action<System.String> |
run |
System.String |
usage |
RemoveCommand(string)
Section titled “RemoveCommand(string)”public void RemoveCommand(string name)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
name |