cli-utils-4.1.0
LicenseBSD3
Maintainertbidne@gmail.com
Safe HaskellNone
LanguageHaskell2010

Git.Stale.Core.IO

Description

Exports functions to be used by Git.Stale.Core.MonadFindBranches for IO.

Synopsis

Documentation

errTupleToBranch :: Maybe FilePath -> Text -> ErrOr NameAuthDay -> IO (ErrOr AnyBranch) Source #

Maps a NameAuthDay on FilePath to AnyBranch. Returns Left Err if any errors occur, Right NameAuthDay otherwise.

logIfErr :: forall a. IO a -> IO a Source #

Runs an IO action and logs the error if any occur.

nameToLog :: Maybe FilePath -> ErrOr Name -> IO (ErrOr NameAuthDay) Source #

Retrieves the log information for a given branch Name on FilePath. Returns Left Err if any errors occur, Right NameAuthDay otherwise.

sh :: Text -> Maybe FilePath -> IO Text Source #

Returns the result of running a shell command given by Text on FilePath.