Something went wrong. Try again.
various tools I have been using throughout the years
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263knit := "knit"cargo := "cargo"
# Show this help messagedefault: @just --list
# Build every toolall: {{ knit }} all
# Build one or more toolsbuild +targets: {{ knit }} {{ "bin/" + replace(targets, " ", " bin/") }}
# Build and run a toolrun target *args: @{{ knit }} bin/{{ target }} && ./bin/{{ target }} {{ args }}
# Build and copy tools to ~/.local/bindeploy +targets: {{ knit }} {{ "deploy/" + replace(targets, " ", " deploy/") }}
# Run all test suitestest: {{ cargo }} test --workspace cd pracomer && zig build test cd wrd && go test ./... cd bandano && go test ./... python3 -m unittest discover -s mpd/tests -v
# Run `cargo clippy` over the workspaceclippy: {{ cargo }} clippy --workspace --all-targets
# Format the Rust workspace with rustfmtrustfmt: {{ cargo }} fmt --all
# Run clang-tidy over every C fileclang-tidy: fd -e c -X clang-tidy {} -- -std=c17 -D_POSIX_C_SOURCE=200809L
# Run all linterslint: clippy clang-tidy
# Update `requirements.txt` lockfile from requirements.inpip-update: {{ knit }} .venv-stamp .venv/bin/pip install --quiet pip-tools .venv/bin/pip-compile --generate-hashes --strip-extras requirements.in -o requirements.txt
# Update `Cargo.lock` lockfilecargo-lockfile: {{ cargo }} generate-lockfile
# Remove build artifacts and cachesclean: {{ cargo }} clean fd -H -I -t d '^(zig-out|\.zig-cache|vendor)$' -X rm -rf find bin -type f -delete rm -rf .venv .knit .venv-stamp