mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 20:43:41 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
16
agent/src/Constants.hs
Normal file
16
agent/src/Constants.hs
Normal file
@@ -0,0 +1,16 @@
|
||||
module Constants where
|
||||
|
||||
import Startlude
|
||||
|
||||
import Data.Version ( showVersion )
|
||||
import Lib.Types.Emver ( Version )
|
||||
import Paths_ambassador_agent ( version )
|
||||
|
||||
agentVersion :: Version
|
||||
agentVersion = fromString $ showVersion version
|
||||
|
||||
withAgentVersionLog :: (Show a, MonadIO m) => Text -> a -> m ()
|
||||
withAgentVersionLog t a = liftIO $ putStrLn @Text $ show agentVersion <> "-- " <> t <> ": " <> show a
|
||||
|
||||
withAgentVersionLog_ :: Text -> IO ()
|
||||
withAgentVersionLog_ t = putStrLn @Text $ show agentVersion <> "-- " <> t
|
||||
Reference in New Issue
Block a user