Beispiel #1
0
 internal ExecuteFileCommand(RootCommandBase rootCommand)
     : base("file", "Execute script file.")
 {
     _rootCommand = rootCommand;
 }
Beispiel #2
0
 internal ExecuteFileCommand(IConsole console, RootCommandBase rootCommand)
     : base(console, "file", "Execute file")
 {
     _rootCommand = rootCommand;
 }
Beispiel #3
0
 public CommandEngine(RootCommandBase rootCommand)
 {
     rootCommand.SetStopAction(Stop);
     _rootCommand = rootCommand;
 }
Beispiel #4
0
 internal CommandEngine(IConsole console)
 {
     _rootCommand = new RootCommand(console, Stop);
 }
 public ExecuteCommand(RootCommandBase rootCommand)
     : base("exec", "Execute command features.", true)
 {
     RegisterCommand(new ExecuteFileCommand(rootCommand));
     RegisterCommand(new ExecuteSleepCommand());
 }
Beispiel #6
0
 public ExecuteCommand(IConsole console, RootCommandBase rootCommand)
     : base(console, "exec")
 {
     RegisterCommand(new ExecuteFileCommand(console, rootCommand));
     RegisterCommand(new ExecuteSleepCommand(console));
 }
 public SocketServer(RootCommandBase rootCommandBase, SystemConsoleBase systemConsoleBase)
 {
     _rootCommandBase = rootCommandBase;
     systemConsoleBase.LineWrittenEvent += _systemConsoleBase_LineWrittenEvent;
 }