Skip to content

Small Rust utility for exiting a command early if a line in stdout matches a regex.

License

Notifications You must be signed in to change notification settings

daniel-beard/until_regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

until_regex REGEX COMMAND [COMMAND_OPT, ...]

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

License

MIT

About

Small Rust utility for exiting a command early if a line in stdout matches a regex.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages