Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Slab.Command
provides a command line interface for the Slab program.
Commands and options are defined by parsers written using the
optparse-applicative
library.
The implementation of each command can be found in the Slab.Run module.
Synopsis
- data Command
- data CommandWithPath
- data RenderMode
- data ParseMode
- parserInfo :: ParserInfo Command
Documentation
Build FilePath RenderMode FilePath | |
Watch FilePath RenderMode FilePath | |
Serve FilePath FilePath | |
Report FilePath | |
Generate FilePath | Generate code. Only Haskell for now. |
CommandWithPath FilePath ParseMode CommandWithPath |
data CommandWithPath Source #
Commands operating on a path.
ParseShallow | Don't process include statements. |
ParseDeep | Process the include statements, creating a complete template. |