3 ms·
Tab completion. `just -l<tab>` shows all the commands and their descriptions. Aside from that, it has lots of built-in ergonomics like consistent argument pars
by kstrauser 2y ago
Tab completion. `just -l<tab>` shows all the commands and their descriptions.
Aside from that, it has lots of built-in ergonomics like consistent argument parsing, functions to say what OS you’re on, an easy way to hide helper functions, the ability to execute a justfile in a great-grandparent directory, etc.
You can totally do any of those things with shell scripts. I prefer letting someone else invent all the bells and whistles there so I don’t have to.
- brabel 2y agoI am a bit confused. If you have your scripts in `scripts/`, doing `scripts/TAB` will also auto-complete! The other things seem like really minor benefits to me, not trying to say you should also feel the same, just giving my opinion.
- pdimitar 2y agoIn my case I prefer all these utility scripts to be in one file because 90% of them are 1-2 lines anyway. Zero point dedicating a directory with several 5-line files.
- kstrauser 2y agoScripts/tab won’t show you the documentation of each script explaining what it’s for. My genuine advice is to download it and play with it for an hour. If you don’t like it, you’ve learned a little about a tool you’re bound to come across sometime. If you do like it, now you’ve added another tool to your palette. Either way you learn something useful.
- raffraffraff 2y agoI use "make", so I get most of this. But the one thing I would like is a sibling / parent / grandparent directory with ease, so I might switch.
- kstrauser 2y agoI’ve used make for many things over the years. I’m competent with it. Make is such a breath of fresh air for the uses that don’t involve actually incrementally building software. It’s sooo less verbose. It’s hard to describe the feel of a thing, but imagine learning to program with Java and then finding Python. If you’re building a giant app developed by thousands of people, maybe Java’s complexity starts to show a benefit. If you just want to quickly script something up, Python gets the job done with a tenth the boilerplate. There’s room for both. Neither replaces the other. But it turns out many of my projects need tools closer to Python/Just than Java/Make.
- yencabulator 2y ago> Tab completion. `./scripts/<tab>` `./sc<tab><tab>`