-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Error::is_not_found or similar #46
Comments
SGTM! Should probably add a |
Closed
Thinking about the broader problem, I think for myself I usually use the following pattern: if cmd!(sh, "my-tool --version").run().is_err() {
eprintln!("Install my tool");
return
} That is perhaps a better behavior than catching the error after-the-fact, because:
|
Revisiting, I lean towards not doing it:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use case: Some automation tools require other binaries to be installed. I would like to catch when that is not the case and print installation instructions.
The text was updated successfully, but these errors were encountered: