예제 #1
0
        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);
        }
예제 #2
0
 public void AddCommand(DevCommand command)
 {
     _commands.Add(command);
 }