Skip to content

Work better with piping #28

Open
Open
@gr2m

Description

@gr2m

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions