Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- cmd :: String -> [String] -> IO String
- cmd_ :: String -> [String] -> IO ()
- cmdBool :: String -> [String] -> IO Bool
- cmdIgnoreErr :: String -> [String] -> String -> IO String
- cmdlog :: String -> [String] -> IO ()
- cmdMaybe :: String -> [String] -> IO (Maybe String)
- cmdN :: String -> [String] -> IO ()
- cmdQuiet :: String -> [String] -> IO String
- cmdSilent :: String -> [String] -> IO ()
- cmdStdIn :: String -> [String] -> String -> IO String
- cmdStdErr :: String -> [String] -> IO (String, String)
- egrep_ :: String -> FilePath -> IO Bool
- grep_ :: String -> FilePath -> IO Bool
- logMsg :: String -> IO ()
- removePrefix :: String -> String -> String
- removeStrictPrefix :: String -> String -> String
- removeSuffix :: String -> String -> String
- shell :: String -> IO String
- shell_ :: String -> IO ()
- sudo :: String -> [String] -> IO ()
- (+-+) :: String -> String -> String
Documentation
cmd_ :: String -> [String] -> IO () Source #
Run command in process, output goes to stdout and stderr
cmdIgnoreErr :: String -> [String] -> String -> IO String Source #
Run a command, drop stderr, and return stdout
cmdMaybe :: String -> [String] -> IO (Maybe String) Source #
Run a command in a process, maybe returning output if it succeeds
cmdN :: String -> [String] -> IO () Source #
Dry-run a command: print it to stdout - more used for debugging
cmdQuiet :: String -> [String] -> IO String Source #
Run a command hiding stderr, if it succeeds return stdout
cmdSilent :: String -> [String] -> IO () Source #
Run a command hiding stdout: stderr is only output if it fails.
cmdStdIn :: String -> [String] -> String -> IO String Source #
Run a command, passing input string as stdin, and return stdout
cmdStdErr :: String -> [String] -> IO (String, String) Source #
Run command in a process, returning stdout and stderr