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