./scripts
folderHave you been bitten by Makefiles? Do you wish for greener, lusher pastures? Do you yearn for the simpler days when scripts existed in a "scripts" folder? a "scripts" folder?
Don't let your dreams be dreams, for the the past is now!
invoke-script
is syntactic sugar around executing files in your scripts
folder.
If you are in a directory containing a scripts folder that looks like this:
scripts
|-- build.sh
|-- deploy
| `-- server.sh
`-- echo_1.sh
Do this:
```bash $ invoke-script Available tasks: -> [build] -> [deploy/server] -> [echo_1]
$ invoke-script build compiling stuff... done ```
But wait there is more! They don't have to be bash scripts. Anything with a "shabang" line will do.
$ echo -e "#!/usr/bin/env python\nprint(\"HELLO PYTHON\")" > scripts/wow.py
$ chmod u+x scripts/**/*
$ invoke-script
Available tasks:
-> [build]
-> [deploy/server]
-> [echo_1]
-> [wow]
$ invoke-script wow
HELLO PYTHON
Truly revolutionary stuff innit.