public static async Task <bool> ExecuteAsync(NpmCommander commander, NpmCommand command) { using (var runner = new NmpCommandRunner(commander, command)) { return(await runner.command.ExecuteAsync()); } }
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); }
public static async Task<bool> ExecuteAsync(NpmCommander commander, NpmCommand command) { using (var runner = new NmpCommandRunner(commander, command)) { return await runner._command.ExecuteAsync(); } }