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