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

Work better with piping #28

Open
gr2m opened this issue Apr 7, 2021 · 0 comments
Open

Work better with piping #28

gr2m opened this issue Apr 7, 2021 · 0 comments

Comments

@gr2m
Copy link
Member

gr2m commented Apr 7, 2021

When output is piped, e.g.

octoherd run myscript.js | my-other-cli-app

Then we should write all logs to stdout, and all other things to stderr.

In short: stdout is for output, stderr is for messaging.

https://medium.com/@jdxcode/12-factor-cli-apps-dd3c227a0e46

I'm still learning about CLI best practices. Besides the article linked above, https://clig.dev is fantastic

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

No branches or pull requests

1 participant