diff options
| author | Fuwn <[email protected]> | 2024-01-06 05:49:33 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-06 05:49:33 -0800 |
| commit | 08ba7284383cff74971659963c87a2eb4cd3c031 (patch) | |
| tree | d7e7c37c1788b27bda3201dae232284ddfcf957f /Koifile | |
| parent | build(koi): task runner (diff) | |
| download | due.moe-08ba7284383cff74971659963c87a2eb4cd3c031.tar.xz due.moe-08ba7284383cff74971659963c87a2eb4cd3c031.zip | |
refactor(tools): input template
Diffstat (limited to 'Koifile')
| -rw-r--r-- | Koifile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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} } } |