diff --git a/keter.cabal b/keter.cabal index 221cbbe..ba0caac 100644 --- a/keter.cabal +++ b/keter.cabal @@ -1,5 +1,5 @@ Name: keter -Version: 0.2.0.2 +Version: 0.2.0.3 Synopsis: Web application deployment manager, focusing on Haskell web frameworks Description: Handles deployment of web apps, providing a reverse proxy to achieve zero downtime deployments. For more information, please see the README on Github: Homepage: http://www.yesodweb.com/ @@ -58,6 +58,7 @@ Executable keter hs-source-dirs: main Build-depends: base, keter ghc-options: -threaded -Wall + other-modules: Paths_keter source-repository head type: git diff --git a/main/keter.hs b/main/keter.hs index 4e26554..8ab7b49 100644 --- a/main/keter.hs +++ b/main/keter.hs @@ -1,12 +1,15 @@ {-# LANGUAGE NoImplicitPrelude #-} -import Prelude (error, (++), ($), IO) +import Prelude (error, (++), ($), IO, putStrLn) import System.Environment (getArgs, getProgName) import Keter.Main (keter) +import Paths_keter (version) +import Data.Version (showVersion) main :: IO () main = do args <- getArgs case args of + ["--version"] -> putStrLn $ "keter version: " ++ showVersion version [dir] -> keter dir _ -> do pn <- getProgName