コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: O2Shell.cs プロジェクト: pusp/o2platform
 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);
 }    
コード例 #3
0
        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);
        }