effect(core): track stderr truncation; polish AppProcess callers (#27353)
This commit is contained in:
parent
ccb207f946
commit
42e6b7d541
5 changed files with 30 additions and 8 deletions
|
|
@ -31,7 +31,8 @@ export interface RunResult {
|
|||
readonly exitCode: number
|
||||
readonly stdout: Buffer
|
||||
readonly stderr: Buffer
|
||||
readonly truncated: boolean
|
||||
readonly stdoutTruncated: boolean
|
||||
readonly stderrTruncated: boolean
|
||||
}
|
||||
|
||||
export type Interface = ChildProcessSpawner["Service"] & {
|
||||
|
|
@ -147,7 +148,8 @@ export const layer = Layer.effect(
|
|||
exitCode,
|
||||
stdout: stdout.buffer,
|
||||
stderr: stderr.buffer,
|
||||
truncated: stdout.truncated,
|
||||
stdoutTruncated: stdout.truncated,
|
||||
stderrTruncated: stderr.truncated,
|
||||
} satisfies RunResult
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue