Safe Haskell | None |
---|---|
Language | Haskell2010 |
Rib.App
Description
CLI interface for Rib.
Mostly you would only need run
, passing it your Shake build action.
Documentation
Rib CLI commands
Constructors
OneOff | |
Generate | Generate the site once. |
Watch | Watch for changes in the input directory and run |
Serve | Run a HTTP server serving content from the output directory |
Instances
Eq Command Source # | |
Show Command Source # | |
Generic Command Source # | |
type Rep Command Source # | |
Defined in Rib.App type Rep Command = D1 ('MetaData "Command" "Rib.App" "rib-0.8.0.0-inplace" 'False) ((C1 ('MetaCons "OneOff" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Generate" 'PrefixI 'True) (S1 ('MetaSel ('Just "full") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "Watch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Serve" 'PrefixI 'True) (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dontWatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) |
Arguments
:: Path Rel Dir | Directory from which source content will be read. |
-> Path Rel Dir | The path where static files will be generated. Rib's server uses this directory when serving files. |
-> Action () | Shake build rules for building the static site |
-> IO () |
Run Rib using arguments passed in the command line.