public CommandEngine(RootCommandBase rootCommand)
 {
     rootCommand.SetStopAction(Stop);
     _rootCommand = rootCommand;
 }
 internal ExecuteFileCommand(IConsole console, RootCommandBase rootCommand)
     : base(console, "file", "Execute file")
 {
     _rootCommand = rootCommand;
 }
 internal CommandEngine(IConsole console)
 {
     _rootCommand = new RootCommand(console, Stop);
 }
 public ExecuteCommand(IConsole console, RootCommandBase rootCommand)
     : base(console, "exec")
 {
     RegisterCommand(new ExecuteFileCommand(console, rootCommand));
     RegisterCommand(new ExecuteSleepCommand(console));
 }