| Safe Haskell | None |
|---|
Test.Sunlight.Shell
- inDirectory :: FilePath -> IO a -> IO a
- makeProcess :: FilePath -> [String] -> IO (Handle, Handle, ProcessHandle)
- bufsize :: Int
- data CmdResult = CmdResult {
- crCode :: ExitCode
- crStdOut :: ByteString
- crStdErr :: ByteString
- crCommand :: String
- crArgs :: [String]
- class ShowBS a where
- showBS :: a -> ByteString
- resultOk :: CmdResult -> Bool
- class CheckOk a where
- tee :: FilePath -> [String] -> IO CmdResult
- readToEOF :: Handle -> Handle -> IO ByteString
Documentation
inDirectory :: FilePath -> IO a -> IO aSource
Runs an IO action within the given directory, and then returns to the original directory.
Creates a process. Its stdin is closed. Returns handles to stdout and stderr, and the ProcessHandle.
Methods
showBS :: a -> ByteStringSource
Runs a command, sending standard output and standard error to the terminal, while also returning the standard output.