1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-24 07:57:58 +03:00
juvix/app/Commands/Dev/Runtime/Options.hs

25 lines
622 B
Haskell
Raw Normal View History

2022-11-03 11:38:09 +03:00
module Commands.Dev.Runtime.Options where
import Commands.Dev.Runtime.Compile.Options
import CommonOptions
newtype RuntimeCommand
2022-12-06 13:33:20 +03:00
= Compile CompileOptions
2022-11-03 11:38:09 +03:00
deriving stock (Data)
parseRuntimeCommand :: Parser RuntimeCommand
parseRuntimeCommand =
hsubparser $
mconcat
[ commandCompile
]
where
commandCompile :: Mod CommandFields RuntimeCommand
commandCompile = command "compile" compileInfo
compileInfo :: ParserInfo RuntimeCommand
compileInfo =
info
(Compile <$> parseCompileOptions parseInputCFile)
2022-11-03 11:38:09 +03:00
(progDesc "Compile a C file with Juvix runtime included")