Skip to content

Commit

Permalink
Executes an external process print logs to stderr (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Jul 6, 2021
1 parent f2c190d commit 6c3a3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func RunCmdWithOutputParser(config CmdConfig, prompt bool, regExpStruct ...*CmdO
}
}
if prompt {
fmt.Println(line)
fmt.Fprintf(os.Stderr, line+"\n")
}
stdOut += line + "\n"
}
Expand Down

0 comments on commit 6c3a3b2

Please sign in to comment.