Skip to content

Distinguishing between :out and :err #14

Open
@adamdavislee

Description

@adamdavislee

Thank you for creating this project, I'm making great progress using it to plumb together some tools that wouldn't normally be able to easily talk to each other.

Unfortunately, I'm having a hard time programmatically distinguishing between normal println output and an exception or error. The only real indication that trenchman provides (as far as I can tell) is the color of the text.

Is it possible to either provide a flag that asks trenchman to output a piece of data with both stdout and stderr (e.g. trench --data -e '('{:out nil, :err "clojure.lang.ExceptionInfo: EOF while reading"}) and/or indicate the type of output via the exit code (e.g. trench -e '('; echo $?… 2).

Regardless, I really appreciate this tool and I'm sure I'll find a way to work around this if improving it is out-of-scope.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions