7 ms·
I've been using just at work and in personal projects for almost a year, and I like it a lot. In particular, its self documentation with `just --list` makes onb
by jcalabro 2y ago
I've been using just at work and in personal projects for almost a year, and I like it a lot. In particular, its self documentation with `just --list` makes onboarding new folks easy. It's also just a nicer syntax than make.
- mike-cardwell 2y agoI don't have my work laptop to hand to compare, but I usually run "just" to get a list of commands and what they do, rather than "just --list". Hope that saves you 7 key presses going forwards.
- peterldowns 2y agoRunning `just` will invoke the first recipe, so you need to add one that invokes `just --list` for this to work — see https://just.systems/man/en/listing-available-recipes.html https://just.systems/man/en/listing-available-recipes.html and my sibling comment.
- fmbb 2y agoThat seems like the most useless pattern to take from make, especially when you name your tool ”just”. Just what?
- TeMPOraL 2y ago> Just what? "Oh... come on! Just... <waving hands angrily>" Pretty clear to me :).
- deleted 2y ago[deleted]
- layer8 2y agoJust execute.
- Cthulhu_ 2y agoThe same applies to make without arguments though, make what? Grammar / word meaning aside, unknown / missing commands printing the help file or suggestions is a good pattern.
- IshKebab 2y agoI think it's less grammatically ambiguous with make. It implicitly means "make <the project>". For most projects that's pretty well defined (and also grammatically correct since 'make' is a verb and 'just' is not). But even so it would have been a better design for `make` to list top level targets or something.
- lambda 2y agoYeah, I've been adding `just help` as an alias for `just --list` and making it the first recipe for this reason.
- mike-cardwell 2y agoHmm. Maybe the dev that set it up made the first recipe run `just --list`
- deleted 2y ago[deleted]
- pdimitar 2y agoNot as much as 7, you can just type `just -l`.
- peterldowns 2y agoAgreed. Is it that different than Make with `.PHONY` targets? Yes — it is Designed To Do Exactly What It Does, And It Does It Well. That counts for something in my book. All my Justfiles start with this prelude to enable positional arguments, and a "default" target to print all the possible commands when you run `just` with no target name: # this setting will allow passing arguments through to tasks, see the docs here # https://just.systems/man/en/chapter_24.html#positional-arguments set positional-arguments # print all available commands by default default: @just --list
- jdxcode 2y agoin mise you wouldn't need that preamble. `set positional-arguments` is just how it behaves normally and `mise run` doesn't just show available commands—it's also a selector UI
- peterldowns 2y agoThat's nice, but I don't have any interest in switching because Just does everything I want. I legitimately have zero feature requests regarding Just.
- konfekt 2y agoMaybe worth reminding the self-documenting Makefile [0] discussed here. [0] https://news.ycombinator.com/item?id=30137254 https://news.ycombinator.com/item?id=30137254
- camgunz 2y agoI've been using this for years; love it
- banku_brougham 2y agoTotal agree. It constrains the chaos in my projects, and its easy to refactor bits into more sustainable cicd, if or when that is ever needed. The self documenting aspect is what puts jt above a folder of shell scripts for me