Show HN: Just, a command runner written in Rust

3 points by rodarmor ↗ 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.

2 comments

[ 2.8 ms ] story [ 18.9 ms ] thread
I can't find anything in the docs about indentation rules. Are tabs required (as in Make)?