-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Sometimes I need a cross-platform (windows and linux) way to wait for a certain command invocation to succeed or fail. Most examples that I've seen require writing a while-loop in your favourite scripting language.
It would be nice if wait4x could have a command mode that would essentially allow those platform-specific shell scripts to be reduced to a cross-platform one-liner:
# This command waits until `just check-foo` has a success exit-code:
wait4x command 'just check-foo'
# This command waits until `just check-foo` has a no success exit-code:
wait4x command 'just check-foo' --reverse
# This command waits until `just check-foo` has a specific exit-code 1:
wait4x command 'just check-foo' --expect-exit-code 1
# This command waits until `just check-foo` has any exit-code that is not 0:
wait4x command 'just check-foo' --expect-exit-code-not 0
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers