4 ms·
Can anyone give me an example where I can actually replace my bash scripts with just? I don't see a point in using it if I can simply write a bash script (at le
by udev4096 2y ago
Can anyone give me an example where I can actually replace my bash scripts with just? I don't see a point in using it if I can simply write a bash script (at least their examples are very easily replaceable)
- porkbrain 2y agoMany reasons are already mentioned in other comments. I'd add the following nice-to-have. Sometimes you'd find it easier/preferable to run some scripts with some other shell. 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.
- bjackman 2y agoI think of you're ok with "just writing a bash script" the tool is not for you Everything I do with Just can pretty easily be done with Bash. But, doing it with bash is yucky. Doing with with Just is comfortable. If you don't have the yuck factor then I'd say you can just stick with Bash!