OutputModule

PackageAxial.Process

Summary

NameSignatureSynopsis
Operations
consoleOutput.console Forwards redirected bytes through the host console streams.
inheritHandlesOutput.inheritHandles Gives the child the host handle directly; this channel cannot also be observed or teed.
discardOutput.discard Drains and discards output.
fileOutput.file pathWrites output to a truncating file.
appendFileOutput.appendFile pathWrites output to an appending file.
callbackOutput.callback writeSends exact byte chunks to a backpressured Flow callback using the process cancellation token.
teeOutput.tee targetsSends every byte chunk to each target in order.
streamOutput.stream targetAdapts a writable .NET stream into an output target.
textWriterOutput.textWriter encoding targetDecodes output incrementally into a .NET text writer.

Operations

kind:member

console

Output.console
Member
Forwards redirected bytes through the host console streams.

Returns

OutputTarget
kind:member

inheritHandles

Output.inheritHandles
Member
Gives the child the host handle directly; this channel cannot also be observed or teed.

Returns

OutputTarget
kind:member

discard

Output.discard
Member
Drains and discards output.

Returns

OutputTarget
kind:member

file

Output.file path
Member
Writes output to a truncating file.

Parameters

NameTypeDescription
pathstring

Returns

OutputTarget
kind:member

appendFile

Output.appendFile path
Member
Writes output to an appending file.

Parameters

NameTypeDescription
pathstring

Returns

OutputTarget
kind:member

callback

Output.callback write
Member
Sends exact byte chunks to a backpressured Flow callback using the process cancellation token.

Parameters

NameTypeDescription
writebyte array -> Flow<unit, 'error, unit>

Returns

OutputTarget
kind:member

tee

Output.tee targets
Member
Sends every byte chunk to each target in order.

Parameters

NameTypeDescription
targetsOutputTarget seq

Returns

OutputTarget
kind:member

stream

Output.stream target
Member
Adapts a writable .NET stream into an output target.

Parameters

NameTypeDescription
targetStream

Returns

OutputTarget
kind:member

textWriter

Output.textWriter encoding target
Member
Decodes output incrementally into a .NET text writer.

Parameters

NameTypeDescription
encodingEncoding
targetTextWriter

Returns

OutputTarget