예제 #1
0
 public static async Task <bool> ExecuteAsync(NpmCommander commander, NpmCommand command)
 {
     using (var runner = new NmpCommandRunner(commander, command))
     {
         return(await runner.command.ExecuteAsync());
     }
 }
예제 #2
0
        private async Task <bool> DoCommandExecute(bool refreshNpmController, NpmCommand command)
        {
            Debug.Assert(_executingCommand == null, "Attempting to execute multiple commands at the same time.");
            try {
                bool success = await NmpCommandRunner.ExecuteAsync(this, command);

                if (refreshNpmController)
                {
                    _npmController.Refresh();
                }
                return(success);
            } catch (Exception e) {
                OnOutputLogged(e.ToString());
            }
            return(false);
        }
예제 #3
0
 public static async Task<bool> ExecuteAsync(NpmCommander commander, NpmCommand command) {
     using (var runner = new NmpCommandRunner(commander, command)) {
         return await runner._command.ExecuteAsync();
     }
 }