dojang-0.2.1: A cross-platform dotfiles manager
Safe HaskellNone
LanguageHaskell2010

Dojang.Commands.Hook

Description

Hook execution module for running pre/post apply hooks.

Synopsis

Documentation

data HookEnv Source #

Environment information for hook execution.

Constructors

HookEnv 

Fields

Instances

Instances details
Show HookEnv Source # 
Instance details

Defined in Dojang.Commands.Hook

executeHooks :: forall (i :: Type -> Type). (MonadFileSystem i, MonadIO i) => HookEnv -> Context (App i) -> HookType -> App i () Source #

Execute all hooks of a given type.

mergeHookEnvironment Source #

Arguments

:: String

The host platform identifier from os.

-> [(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.