dmc-1.1: cmd for common cases

Safe HaskellNone
LanguageHaskell2010

System.Process.Dmc

Synopsis

Documentation

run :: Cwd -> Cmd String -> [Arg String] -> IO (Either String ()) Source #

run executable with args

waits

Left String indicates error

shell :: Cwd -> Cmd String -> IO (Either String ()) Source #

run shell cmd

waits

Left String indicates error

call :: Cwd -> Cmd String -> [Arg String] -> IO (ExitCode, Stdout, Stderr) Source #

call cmd, get output

quote :: String -> String Source #

enclose String in ""

join :: [String] -> String Source #

join String with " " : useful to construct shell cmd