We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
require_exes is currently a way to quickly check for external dependencies, and abort if they are missing.
require_exes
Example use in a #!/bin/sh script, ensure two audio programs are available:
#!/bin/sh
require_exes bladeenc mp3info || exit 1
To use it in a #!/bin/bash script is a little simpler:
#!/bin/bash
. require_exes bladeenc mp3info
Suggested enhancement: When we call require_exe (or perhaps via a global config file) we can tell it how to install that command if it is not present.
Then it could prompt the user to install the package that would provide the exe, so that the script can continue to run without issue.
(Storing the mapping from command_name to (packager,package_name) in a global file would be DRYer than declaring it on every include!)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
require_exes
is currently a way to quickly check for external dependencies, and abort if they are missing.Example use in a
#!/bin/sh
script, ensure two audio programs are available:To use it in a
#!/bin/bash
script is a little simpler:Suggested enhancement: When we call require_exe (or perhaps via a global config file) we can tell it how to install that command if it is not present.
Then it could prompt the user to install the package that would provide the exe, so that the script can continue to run without issue.
(Storing the mapping from command_name to (packager,package_name) in a global file would be DRYer than declaring it on every include!)
The text was updated successfully, but these errors were encountered: