Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the code for actually executing a command with tracing enabled.
Synopsis
- data Subprocess
- commandToString :: Subprocess -> String
- commandToProcessConfig :: Subprocess -> ProcessConfig () () ()
- data ExecArgs = ExecArgs {}
- data SpanStatus'
- parseSpanStatus' :: ReadM SpanStatus'
- parseProc :: Parser (NonEmpty String)
- parseShell :: Parser String
- parseSubprocess :: Parser Subprocess
- parseAttribute :: String -> Either String (Text, Attribute)
- parseExecArgs :: Parser ExecArgs
- makeInitialAttributes :: Subprocess -> HashMap Text Attribute -> IO (HashMap Text Attribute)
- runNoTracing :: Subprocess -> IO ()
- runExecArgs :: ExecArgs -> IO ()
- exitStatusName :: Text
- executablePathName :: Text
- executableName :: Text
- commandArgsName :: Text
Documentation
commandToString :: Subprocess -> String Source #
commandToProcessConfig :: Subprocess -> ProcessConfig () () () Source #
data SpanStatus' Source #
A variant of SpanStatus
that does not include a Text
for error.
parseAttribute :: String -> Either String (Text, Attribute) Source #
Parse a `key=value` string into an attribute.
makeInitialAttributes :: Subprocess -> HashMap Text Attribute -> IO (HashMap Text Attribute) Source #
runNoTracing :: Subprocess -> IO () Source #
runExecArgs :: ExecArgs -> IO () Source #