예제 #1
0
        /// <summary>
        /// Issue a command for PowershellTools to run synchronously
        /// </summary>
        /// <param name="command">Command to execute</param>
        /// <returns>Has error or not</returns>
        public bool ExecutePowerShellCommand(string command)
        {
            try
            {
                if (_debugger.HostUi != null)
                {
                    _debugger.HostUi.OutputString = OutputString;
                }

                return(_debugger.ExecuteInternal(command));
            }
            catch (Exception ex)
            {
                OutputString(ex.Message);
                throw;
            }
        }
 public bool ExecutePowerShellCommand(string command)
 {
     return(_debugger.ExecuteInternal(command));
 }