executor-0.0.4: Shell helpers

Safe HaskellSafe
LanguageHaskell2010

Executor

Synopsis

Documentation

execSync :: String -> IO String Source #

Alias for exec

exec :: String -> IO String Source #

Execute a single shell command returning its output for example:

>>> execSync "echo hi"
"hi\n"

execSequenceSync :: [String] -> IO [String] Source #

Execute a list of shell commands in sequence synchronously for example:

>>> execSequenceSync ["echo hi", "sleep 1", "echo goodbye"]
["hi\n","","goodbye\n"]

execListSync :: [String] -> IO [String] Source #

Alias for execSequenceSync