aboutsummaryrefslogtreecommitdiffstats
path: root/alv/copilot/cli.moon
diff options
context:
space:
mode:
Diffstat (limited to 'alv/copilot/cli.moon')
-rw-r--r--alv/copilot/cli.moon5
1 files changed, 4 insertions, 1 deletions
diff --git a/alv/copilot/cli.moon b/alv/copilot/cli.moon
index 14bfd6b..67e8450 100644
--- a/alv/copilot/cli.moon
+++ b/alv/copilot/cli.moon
@@ -25,12 +25,15 @@ class CLICopilot extends Copilot
super parse_args arg, { nocolor: false, 'udp-server': false }
assert @args[1], "no filename given"
- run: =>
+ setup: =>
if @args.nocolor
Logger\init @args.log
else
ColorLogger\init @args.log
+ run: =>
+ @setup!
+
while true
@tick!
sleep 1 / 1000