Documentation
¶
Overview ¶
Package printed holds what a command prints when the daemon runs it for a client: the client prints it, so a command served over the API prints the bytes it printed in process.
Index ¶
Constants ¶
const ( KindHeader = "F10-Error" KindOutside = "outside-herdr" )
KindHeader names a refusal a caller tells apart by kind rather than by its words: KindOutside is a caller outside Herdr.
const ExitHeader = "F10-Exit"
ExitHeader carries a command's exit code on its error, which Connect has no field for, so the CLI exits with the code it exited with in process.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
An Error is a failure after the command printed something.
type Output ¶
type Output struct {
Stdout render.LinkBuffer
Stderr bytes.Buffer
}
Output is one call's stdout and stderr. Stdout links task ids and paths when the client's own stdout is a terminal, since the client copies it there unchanged.