📝 [shared] Add justfile comments

This commit is contained in:
Martin Berg Alstad 2025-04-17 12:06:57 +02:00
parent 4b3ad49384
commit 4f126bab90
Signed by: martials
GPG Key ID: 706F53DD087A91DE

View File

@ -1,25 +1,30 @@
# List all receipes
default:
@just --list
# Format all files in repo
fmt:
treefmt --on-unmatched info
# Build a specific host but don't activate it. Host must use same system as target system
build HOST:
git add .
just fmt
nh os build . -H {{HOST}}
# Switch to new config, but don't add to bootloader
test *FLAGS:
git add .
just fmt
nh os test . {{FLAGS}}
# Switch to new config and add to bootloader
switch *FLAGS:
git add .
just fmt
nh os switch . {{FLAGS}}
# Switch to new config and add to bootloader without formatting or adding to git
switch-now *FLAGS:
nh os switch . {{FLAGS}}