Skip to content

Commit 7c476f1

Browse files
authored
Fix live-updating terminal UI by not printing to STDOUT/STDERR (#177)
1 parent b83dda6 commit 7c476f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/src/actions_exec_logger.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ func (a *actionLogger) RepoStdoutStderr(repoName string) (io.Writer, io.Writer,
143143
defer a.mu.Unlock()
144144
w, ok := a.logWriters[repoName]
145145

146+
if !a.verbose {
147+
return w, w, ok
148+
}
149+
146150
stderrPrefix := fmt.Sprintf("%s -> [STDERR]: ", yellow.Sprint(repoName))
147151
stderr := textio.NewPrefixWriter(os.Stderr, stderrPrefix)
148152

0 commit comments

Comments
 (0)