aboutsummaryrefslogtreecommitdiff
path: root/Koifile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-06 05:49:33 -0800
committerFuwn <[email protected]>2024-01-06 05:49:33 -0800
commit08ba7284383cff74971659963c87a2eb4cd3c031 (patch)
treed7e7c37c1788b27bda3201dae232284ddfcf957f /Koifile
parentbuild(koi): task runner (diff)
downloaddue.moe-08ba7284383cff74971659963c87a2eb4cd3c031.tar.xz
due.moe-08ba7284383cff74971659963c87a2eb4cd3c031.zip
refactor(tools): input template
Diffstat (limited to 'Koifile')
-rw-r--r--Koifile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Koifile b/Koifile
index 9aa9c1fc..b0dcf17a 100644
--- a/Koifile
+++ b/Koifile
@@ -1,10 +1,15 @@
#!/usr/bin/env koi
if args.len() > 0 {
- if args[0] == 'dev' {
+ let action = args[0]
+
+ if action == 'dev' {
bun run dev --host
+ } else if action == 'vpn' {
+ piactl disconnect
+ piactl connect
} else {
- bun --bun run {args[0]}
+ bun --bun run {action}
}
}