Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains functions and data types to parse CLI inputs.
CLI data types
Represent all available commands
Options parsed with new
command
NewOpts | |
|
Functions to parse CLI arguments and run summoner
summon :: Version -> (Command -> IO ()) -> IO () Source #
Main function that parses CLI
commands and runs them using given
Command
handler.
Runners
runScript :: ScriptOpts -> IO () Source #
Runs script
command.
Usage: summon script BUILD_TOOL (-g|--ghc GHC_VERSION) (-n|--name FILE_NAME) Create a new Haskell script Available options: -h,--help Show this help text -g,--ghc GHC_VERSION Version of the compiler to be used for script -n,--name FILE_NAME Name of the script file