public O2Shell() { shellIO = new ShellIO(); shellExecution = new ShellExecution(shellIO); shellIO.writeLine("Welcome to O2's Kernel shell.\n"); shellIO.writeLine("This is an interactive command prompt into O2's world\n"); shellIO.writeLine("O2Kernel Process Name: {0}\n\n", DI.O2KernelProcessName); }
public O2Shell() { shellIO = new ShellIO(); shellExecution = new ShellExecution(shellIO); shellIO.writeLine("Welcome to O2's Kernel shell.\n"); shellIO.writeLine("This is an interactive command prompt into O2's world\n"); shellIO.writeLine("O2Kernel Process Name: {0}\n\n",DI.O2KernelProcessName); }
public bool execute(string cmdToExecute) { // shellIO.write("\nExecuting: {0} \n\n", cmdToExecute); var shellCmdLet = resolveCmdToExecuteIntoShellCmdLet(cmdToExecute); if (shellCmdLet == null) { shellIO.writeLine("Error: Could not resolve command: {0}", cmdToExecute); } else { execute(shellCmdLet); } return(true); }