You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, shell commands only run after cargo commands run successfully. I'd also like to be able to run a different shell command on cargo command failures. My use case is that I'd like to run a command that plays a success sound on a cargo command success, and a different sound on cargo command failure.
Currently, shell commands only run after cargo commands run successfully. I'd also like to be able to run a different shell command on cargo command failures. My use case is that I'd like to run a command that plays a success sound on a cargo command success, and a different sound on cargo command failure.
This is what I have right now:
cargo watch -x check -s "afplay ~/bin/success-chime.mp3 & echo ''"
This is what I'd like to see. I'm not sure that this would be the right syntax, but I think it gets the point across:
The
-s
arg gets run after the previous cargo commands pass, and the--cargo-failure
arg gets run if cargo doesn't complete successfully.What should the syntax here be?
The text was updated successfully, but these errors were encountered: