Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devshell: Don't output status if not on a tty #3624

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

cgwalters
Copy link
Member

This is just better behavior for the case of e.g.
cosa run -x "somecmd" > out.txt to execute a command and capture the output - we don't want to intermix status stuff in there.

Further, this makes it easier to test the code when not on a tty (in e.g. CI).

@cgwalters
Copy link
Member Author

Forked out from #3623 which is itself forked out from #3249 which I only dimly recalled doing but thankfully did!

jlebon
jlebon previously approved these changes Sep 18, 2023
mantle/cmd/kola/devshell.go Outdated Show resolved Hide resolved
This is just better behavior for the case of e.g.
`cosa run -x "somecmd" > out.txt` to execute a command and
capture the output - we don't want to intermix status stuff in
there.

Further, this makes it easier to test the code when not on
a tty (in e.g. CI).
@cgwalters cgwalters merged commit 0b45ee5 into coreos:main Sep 19, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants