./scripts
folderinvoke-script
is ✨ syntactic sugar ✨ around executing programs in your
scripts
folder.
Tip: Alias
invoke-script
to something short likeis
This is currently only available as a cargo binary. Installation options will be expanded once/if this gets to v1.0.0.
bash
cargo install invoke-script
I you have a file starting with a hash-bang line in a ./scripts
folder:
scripts/build.sh
```sh
echo compiling stuff... sleep 2 echo done ```
You run it using: ```bash invoke-script build
compiling stuff... done ```
It does not need to be bash. Any interpreter-like program can be used if you
can specify the full path to it. On linux machines, you can use the
/usr/bin/env
if you are not sure what the full path might be.
scripts/test.py
```python
print("HELLO FROM PYTHON") ```
Run it the same way: ```bash invoke-script test
HELLO FROM PYTHON ```