feat(just): Add justfiles for setup

This commit is contained in:
js0ny 2025-04-09 11:02:02 +01:00
parent d43a4b7106
commit dae3143f86
12 changed files with 310 additions and 253 deletions

26
.just.d/cmds.just Normal file
View file

@ -0,0 +1,26 @@
# Sudo and coreutils are required
LN := \
if os_family() == "windows" {
"sudo ln -sf"
} else {
"ln -sf"
}
CLIP := \
if os() == "windows" { "clip.exe" } \
else if os() == "linux" { "wl-copy" } \
else if os() == "macos" { "pbcopy" } \
else { "" }
CURL := \
if os() == "windows" { "Invoke-WebRequest" } \
else if os() == "linux" { "curl" } \
else if os() == "macos" { "curl" } \
else { "" }
CURL_OUT := \
if os() == "windows" { "-OutFile" } \
else if os() == "linux" { "-o" } \
else if os() == "macos" { "-o" } \
else { "" }