private void execute(ShellCmdLet shellCmdLet)
        {
            var returnData = PublicDI.reflection.invoke(null, shellCmdLet.MethodToExecute, shellCmdLet.CmdParameters);

            _shellIO.lastExecutionResult = (returnData != null) ? returnData.str() : "";
            if (returnData != null)
            {
                _shellIO.writeLineWithPreAndPostNewLine(returnData.str());
            }
        }
Esempio n. 2
0
 private void execute(ShellCmdLet shellCmdLet)
 {
     var returnData = PublicDI.reflection.invoke(null,shellCmdLet.MethodToExecute, shellCmdLet.CmdParameters);
     _shellIO.lastExecutionResult = (returnData!=null) ? returnData.str() : "";
     if (returnData != null)
         _shellIO.writeLineWithPreAndPostNewLine(returnData.str());
 }