add args for Justfile recipe
This commit is contained in:
parent
eeb1de6d55
commit
b999390cbc
1 changed files with 3 additions and 2 deletions
5
Justfile
5
Justfile
|
|
@ -1,10 +1,11 @@
|
||||||
FLAKE_HOME := justfile_directory()
|
FLAKE_HOME := justfile_directory()
|
||||||
|
DEFAULT_SPECIALISATION := "default"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
switch:
|
switch specialisation=DEFAULT_SPECIALISATION:
|
||||||
nh os switch {{FLAKE_HOME}}
|
nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
|
||||||
update:
|
update:
|
||||||
nix flake update | spacer
|
nix flake update | spacer
|
||||||
push host target:
|
push host target:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue