Skip to content

Feature Request: Read process interleaved with stream assignment #61

Open
@ad-si

Description

@ad-si

It would be cool to have a function a la

readProcessTimed
  :: MonadIO m	  
  => ProcessConfig stdin stdoutIgnored stderrIgnored	  
  -> m (ExitCode, [(ByteString, ByteString, ByteString)])

which would results in something like this:

( ExitSuccess,
    [ ( "2022-10-29T15:20:12.168Z", "stdout", "Hello World!" ) ] 
    , ( "2022-10-29T15:20:12.175Z", "stderr", "ERROR: World not available" ) ] 
    ]
)
  • There should probably be a version with and without timestamp (or make it configurable)
  • It should probably use a more elaborate data type than a tuple of strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions