public static void ExecuteRunVerb(RunVerbOptions invokedVerbOptions) { using var client = CreateClient(invokedVerbOptions); client.Connect(); var command = ExecuteCommand(client, invokedVerbOptions.Command); Environment.ExitCode = command.ExitStatus; client.Disconnect(); }
private const string TerminalName = "xterm"; // "vanilla" works well; "xterm" is also a good option public static void ExecuteRunVerb(RunVerbOptions invokedVerbOptions) { using (var client = DeploymentManager.CreateClient(invokedVerbOptions)) { client.Connect(); var command = DeploymentManager.ExecuteCommand(client, invokedVerbOptions.Command); Environment.ExitCode = command.ExitStatus; client.Disconnect(); } }