by dannyben · 5y ago · 0 comments
1. Define your commands + flags + args in YAML (`bashly init` creates this YAML).
2. Bashly generates the standalone script and empty "placeholder" scripts for your actual bash code (`bashly generate`).
3. You plug in your bash code.
4. Bashly merges it all back to the same single final script (`bashly generate`).
5. Rinse and repeat.
What happens when I get to 5 and want to change an arg for cdm/foo? Does step 3 need to be repeated in its entirety?
I think this is a good minimal example:
https://github.com/DannyBen/bashly/tree/master/examples/mini...