private void AddBuildInCommands() { var help = new DevCommand("help", "show a list of commands", () => { ShowHelp = true; }); var exit = new DevCommand("exit", "disable console", () => { ShowConsole = false; }); AddCommand(help); AddCommand(exit); }
public void AddCommand(DevCommand command) { _commands.Add(command); }