Skip to content

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.

Declaration
public sealed class ShellCommandGroup
Declaration
public string Name { get; }
Declaration
public string Help { get; }

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.

Declaration
public void AddCommand(string name, string help, Action<string> run, string usage = null)
Type Name
System.String name
System.String help
System.Action<System.String> run
System.String usage
Declaration
public void RemoveCommand(string name)
Type Name
System.String name