top | item 42351350

(no title)

jcalabro | 1 year 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.

discuss

order

peterldowns|1 year ago

Agreed. 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|1 year ago

in 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

mike-cardwell|1 year 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.

pdimitar|1 year ago

Not as much as 7, you can just type `just -l`.

banku_brougham|1 year ago

Total 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