From 08ba7284383cff74971659963c87a2eb4cd3c031 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 6 Jan 2024 05:49:33 -0800 Subject: refactor(tools): input template --- Koifile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Koifile') 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} } } -- cgit v1.2.3