summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-06 10:25:26 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-06 10:25:26 +0100
commitf47fd1a967bb54fb09472287bcb97306979a88b1 (patch)
treecfa01c1778a66c45a11da3dc01db0a390ae960f8 /src/Text
parent7ae56f7d4b15fa3ea1f48ca2c79f1064bddc6af5 (diff)
downloadhakyll-f47fd1a967bb54fb09472287bcb97306979a88b1.tar.gz
Added rebuild mode.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Hakyll.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Hakyll.hs b/src/Text/Hakyll.hs
index ee9cb5f..9dc8fbb 100644
--- a/src/Text/Hakyll.hs
+++ b/src/Text/Hakyll.hs
@@ -47,6 +47,7 @@ hakyllWithConfiguration configuration buildFunction = do
["clean"] -> clean
["preview", p] -> preview buildFunction (read p)
["preview"] -> preview buildFunction 8000
+ ["rebuild"] -> clean >> buildFunction
["server", p] -> server (read p)
["server"] -> server 8000
_ -> help
@@ -90,6 +91,7 @@ help = liftIO $ do
++ name ++ " clean Clean up and remove cache.\n"
++ name ++ " help Show this message.\n"
++ name ++ " preview [port] Run a server and autocompile.\n"
+ ++ name ++ " rebuild Clean up and build again.\n"
++ name ++ " server [port] Run a local test server.\n"
-- | Start a server at the given port number.