Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-beard/until_regex
Small Rust utility for exiting a command early if a line in stdout matches a regex.
https://github.com/daniel-beard/until_regex
rust shell until utility
Last synced: 16 days ago
JSON representation
Small Rust utility for exiting a command early if a line in stdout matches a regex.
- Host: GitHub
- URL: https://github.com/daniel-beard/until_regex
- Owner: daniel-beard
- License: mit
- Created: 2019-05-10T16:19:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T15:52:00.000Z (over 5 years ago)
- Last Synced: 2024-10-03T12:27:34.885Z (about 1 month ago)
- Topics: rust, shell, until, utility
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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