until_regex 0.1.0

Tiny utility for stopping execution of a long running process on a regex match in stdout or stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# until_regex

Small utility for exiting a long running shell command when a line in stdout matches a given regex.
When an early exit occurs, this util returns a `0` exitCode. Otherwise, it respects the output of the child command.

This utility forwards both `stderr` and `stdout` from the child command.

## Usage

```bash
until_regex REGEX COMMAND [COMMAND_OPT, ...]

until_regex '^Ld .* MyApp' xcodebuild -workspace MyApp.xcworkspace -scheme MyApp clean build
```

## License

MIT