Command runner for your ./scripts folder

invoke-script is ✨ syntactic sugar ✨ around executing programs in your scripts folder.

Tip: Alias invoke-script to something short like is

Install

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

Quickstart

I you have a file starting with a hash-bang line in a ./scripts folder:

scripts/build.sh ```sh

! /usr/bin/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

! /usr/bin/env python

print("HELLO FROM PYTHON") ```

Run it the same way: ```bash invoke-script test

HELLO FROM PYTHON ```