werewolf-1.2.0.0: app/Werewolf/Command/Version.hs
{-|
Module : Werewolf.Command.Version
Description : Handler for the version subcommand.
Copyright : (c) Henry J. Wylde, 2016
License : BSD3
Maintainer : public@hjwylde.com
Handler for the start subcommand.
-}
module Werewolf.Command.Version (
-- * Handle
handle,
) where
import Control.Monad.Except
import Data.Text (Text)
import Game.Werewolf
import Game.Werewolf.Message.Command
handle :: MonadIO m => Text -> m ()
handle callerName = exitWith success { messages = [engineVersionMessage callerName] }