Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rosenkolev/devops-targets


https://github.com/rosenkolev/devops-targets

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# DevOpsTargets.Terminal

**This is a wrapper of the native OS terminal that can execute many commands and track command result.**

Example
```csharp
using DevOps.Terminal.Terminals;
// ...
TerminalSingleton.DefaultTerminal.Exec(
TerminalCommand.CreateParse("echo test"));

// pipe
TerminalSingleton.DefaultTerminal.Exec(
TerminalCommand.Cd("/src") &&
TerminalCommand.CreateParse("ls .") &&
TerminalCommand.CreateParse("ping ..."));

TerminalSingleton.DefaultTerminal.Exec(
TerminalCommand.Cd("/src") &&
TerminalCommand.CreateParse("ls .") &&
TerminalCommand.CreateParse("ping ..."));

var result = TerminalSingleton.DefaultTerminal.ExecuteCommand(
new [] { "dotnet", "test" });

// result.ExitCode == 0
```