| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Dojang.Commands.Hook
Description
Hook execution module for running pre/post apply hooks.
Synopsis
- data HookEnv = HookEnv {
- repositoryPath :: OsPath
- manifestPath :: OsPath
- isDryRun :: Bool
- currentOS :: Text
- currentArch :: Text
- executeHooks :: forall (i :: Type -> Type). (MonadFileSystem i, MonadIO i) => HookEnv -> Context (App i) -> HookType -> App i ()
- mergeHookEnvironment :: String -> [(String, String)] -> [(String, String)] -> [(String, String)]
- shouldRunHook :: MonikerMap -> Environment -> Hook -> Bool
Documentation
Environment information for hook execution.
Constructors
| HookEnv | |
Fields
| |
executeHooks :: forall (i :: Type -> Type). (MonadFileSystem i, MonadIO i) => HookEnv -> Context (App i) -> HookType -> App i () Source #
Execute all hooks of a given type.
Arguments
| :: String | The host platform identifier from |
| -> [(String, String)] | The variables supplied by Dojang. |
| -> [(String, String)] | The parent process environment. |
| -> [(String, String)] | The combined hook environment. |
Overlay the variables supplied by Dojang on the parent environment.
shouldRunHook :: MonikerMap -> Environment -> Hook -> Bool Source #
Determine if a hook should run based on its condition.