3 ms·
I 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
by mike-cardwell 2y ago
I 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`.