Cheatography
https://cheatography.com
List of utilities for the terminal
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Simple justfile
default: lint build test
# default recipe to display help information
default:
@just --list
# if no default recipe, first recipe will be default
|
Variable and Substitution
export RUST_BACKTRACE := "1"
test:
# will print a stack trace if it crashes
cargo test
|
|
|
Recipe with parameters
# recipe param as env variable with $ sign
hello $name:
echo $name
|
backtick - capture output from evaluation
JAVA_HOME := jbang jdk home 11
# backtick code block
stuff := `
foo="hello"
echo $foo "world"
`
done BRANCH=git rev-parse --abbrev-ref HEAD :
git checkout master
sloc:
@echo "wc -l *.c lines of code"
# backtick works anywhere: string/variable/params
|
|