(no title)
porkbrain | 1 year ago
You can set the shell for some commands, for example:
```
set shell := [ "python3", "-c"]
# I can run python!
[no-cd]
foo-bar:
@import sys; major, minor = sys.version_info[:2];
assert (major, minor) >= (3, 7), "This script requires at least Python 3.7. Please link \"python3\" to Python 3.7 or higher and try again."
```And the API for your commands stays consistent for a very little effort. Of course you can achieve all this with just bash scripts but I find it faster and easier to provide a good devex this way.
No comments yet.