From b999390cbc59d3120a2cc98c042684b68fc93bf6 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Fri, 24 Jan 2025 21:29:55 +0800 Subject: [PATCH] add args for Justfile recipe --- Justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 6720300..2be5b8a 100644 --- a/Justfile +++ b/Justfile @@ -1,10 +1,11 @@ FLAKE_HOME := justfile_directory() +DEFAULT_SPECIALISATION := "default" default: @just --list -switch: - nh os switch {{FLAKE_HOME}} +switch specialisation=DEFAULT_SPECIALISATION: + nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }} update: nix flake update | spacer push host target: