release 0.1.0
This commit is contained in:
commit
30d94536a9
90 changed files with 7722 additions and 0 deletions
19
modules/owu/cli/main.owa
Normal file
19
modules/owu/cli/main.owa
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
(seq
|
||||
(def cmd (vec.first argv))
|
||||
(def args (vec.tail argv))
|
||||
|
||||
(if (bool.or (null? cmd) (str.starts-with? cmd "-")) (seq
|
||||
(trace "Error: No command specified")
|
||||
(return 1)
|
||||
))
|
||||
|
||||
(try
|
||||
(match cmd
|
||||
("run" (include "run"))
|
||||
(_ (trace "Error: Command '" cmd "' not found"))
|
||||
)
|
||||
(lambda [msg type] (seq
|
||||
(trace type ": " msg)
|
||||
(return 1)))
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue