Skip to content

Commit

Permalink
Make external process output grey (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock authored Nov 20, 2024
1 parent ceeed31 commit 35212f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Stack/Git/GitHubOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private string ExecuteGitHubCommandAndReturnOutput(string command, GitHubOperati

if (settings.Verbose && infoBuilder.Length > 0)
{
console.WriteLine(infoBuilder.ToString());
console.MarkupLine($"[grey]{infoBuilder}[/]");
}

return infoBuilder.ToString();
Expand Down Expand Up @@ -135,7 +135,7 @@ private void ExecuteGitHubCommandInternal(string command)
{
if (infoBuilder.Length > 0)
{
console.WriteLine(infoBuilder.ToString());
console.MarkupLine($"[grey]{infoBuilder}[/]");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Stack/Git/GitOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private string ExecuteGitCommandAndReturnOutput(string command, GitOperationSett

if (settings.Verbose && infoBuilder.Length > 0)
{
console.WriteLine(infoBuilder.ToString());
console.MarkupLine($"[grey]{infoBuilder}[/]");
}

return infoBuilder.ToString();
Expand All @@ -193,7 +193,7 @@ private void ExecuteGitCommand(string command, GitOperationSettings settings)
// changes to the Git repository as the output might be important.
// In verbose mode we would have already written the output
// of the command so don't write it again.
console.WriteLine(output);
console.MarkupLine($"[grey]{output}[/]");
}
}
}
Expand Down

0 comments on commit 35212f6

Please sign in to comment.