Skip to content

Show HN: Just, a command runner written in Rust

3 pointsrodarmor2 comments
On HN

Just lets you save and run commands from files with a terse, readable syntax similar to Make:

  build:
      cc *.c -o main
  
  # test everything
  test-all: build
      ./test --all
  
  # run a specific test
  test TEST: build
      ./test --test {{TEST}}
It is cross-platform, written in Rust, and actively maintained on GitHub:

https://github.com/casey/just/

Just has a bunch of nice features:

  - Can be invoked from any subdirectory
  - Arguments can be passed from the command line
  - Static error checking that catches syntax errors and typos
  - Excellent error messages with source context
  - The ability to list recipes from the command line
  - Recipes can be written in any language
  - Works on Linux, macOS, and Windows
  - And much more!
Just doesn't replace Make, or any other build system, but it does replace reverse-searching your command history, telling colleagues the weird flags they need to pass to do the thing, and forgetting how to run old projects.

Comments

I can't find anything in the docs about indentation rules. Are tabs required (as in Make)?

IIRC it doesn't require tabs

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.