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 #! /usr/bin/env -S hbs2-cli file
println *args ; # println *args
; # (println (grep (sym "-g") *args)) ; # (println (grep (sym "-g") *args))
(match *args (match *args
( (list? _ ...) ( (list? [sym? store] ...)
(begin (begin
(println "FUCKING STORE" space ...)) (println "FUCKING STORE" space ...))
) )
( _ nil) ( _ (println "FUCK") )
) )

View File

@ -105,8 +105,19 @@ main = do
runHBS2Cli do runHBS2Cli do
-- error (show $ pretty cli)
case cli of 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 [] -> do
eof <- liftIO IO.isEOF eof <- liftIO IO.isEOF
if eof then if eof then