#Filter output from Container#withExec ... Container#stdout
1 messages · Page 1 of 1 (latest)
Yeah, you'd need to pipe to grep unless the command you run has some flags you can use to reduce the voerbosity.
right, so I do that like this?
cnt.withExec([
"mvn", "install" , "|", "grep -v whatever"])
.stdout()
No, for pipes, you need to wrap the command in a shell:
cnt.withExec(["sh", "-c", "mvn install | grep -v whatever"]).stdout()