Skip to content

Add support to Command to return the process exit code. #161

@aaronjwhiteside-appdirect

Description

When executing commands like grep it's important to know the actual processes exit code:

0 = found matches
1 = no matches found
>= 2 = actual errors.

The current implementation does not allow one to tell the difference between no matches found and actual errors, you could inspect the stdout, but that's quite messy.

Also the waitUntilComplete() should probably return a tuple of the output + status + exitCode instead of throwing an Error, to allow access to the underlying output without having to parse the error's message. A custom error with these properties would also work.

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