This commit is contained in:
voidlizard 2025-05-19 13:29:40 +03:00
parent 5c6666ce65
commit 4620fb2087
2 changed files with 14 additions and 3 deletions

View File

@ -1,17 +1,17 @@
#! /usr/bin/env -S hbs2-cli file
println *args
; # println *args
; # (println (grep (sym "-g") *args))
(match *args
( (list? _ ...)
( (list? [sym? store] ...)
(begin
(println "FUCKING STORE" space ...))
)
( _ nil)
( _ (println "FUCK") )
)

View File

@ -105,8 +105,19 @@ main = do
runHBS2Cli do
-- error (show $ pretty cli)
case cli of
( cmd@(ListVal [StringLike "file", StringLike fn]) : _ ) -> do
void $ run dict [cmd]
( cmd@(ListVal [StringLike "stdin"]) : _ ) -> do
void $ run dict [cmd]
( cmd@(ListVal [StringLike "--help"]) : _ ) -> do
void $ run dict [cmd]
[] -> do
eof <- liftIO IO.isEOF
if eof then