Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created January 9, 2018 15:13
Show Gist options
  • Save kevingosse/1b161f42016e965e087613f0787b91e7 to your computer and use it in GitHub Desktop.
Save kevingosse/1b161f42016e965e087613f0787b91e7 to your computer and use it in GitHub Desktop.
private async Task ExecuteCommand(string command)
{
ContentTextBox.Document.Blocks.Add(new Paragraph(new Run(command)));
ContentTextBox.ScrollToEnd();
var result = await _console.ExecuteCommandAndCaptureOutputAsync(command);
_historyManager.LogCommand(command, result);
AppendDmlOutput(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment