From 3a87740e058caf9210f6bde6869b0d23482dc5d0 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 22 Nov 2024 12:08:26 +0100 Subject: [PATCH] Refactor justfile --- justfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/justfile b/justfile index 707fc77..68ad4b3 100644 --- a/justfile +++ b/justfile @@ -3,17 +3,9 @@ set quiet := true default: just --list --unsorted -switch: - nh os switch . - -test: - nh os test . - -boot: - nh os boot . - -reboot: boot - reboot +rebuild mode='switch': + nh os {{ if mode == 'reboot' { 'boot' } else { mode } }} . + {{ if mode == 'reboot' { 'reboot' } else { '' } }} update: nix flake update