From 26db5b5629ba759a8f1a9d1d9fa6b6bf392f2e1b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 27 Sep 2024 00:57:21 -0700 Subject: just: unify os and home action --- justfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 06381d1..2b23ac1 100644 --- a/justfile +++ b/justfile @@ -1,11 +1,14 @@ default: @just --list -os hostname='kansai': - git add . && rui --allow-unfree os switch --hostname {{hostname}} -- --impure +action target action: + git add . && rui --allow-unfree {{target}} {{action}} -- --impure -home user='ebisu': - git add . && rui --allow-unfree home switch --user {{user}} -- --impure +build target: + just action {{target}} build + +switch target: + just action {{target}} switch news user='ebisu': rui home news --user {{user}} -- --impure -- cgit v1.2.3