Ports #
A sink: it has no outputs.
| Port | Direction | Kind | Required | Description |
|---|---|---|---|---|
in | input | records | yes |
Parameters #
This pipe has no parameters.
When to use it #
- A pipeline whose result should always go to the runner's standard output as NDJSON.
- Feed
jq,grepor another command line tool from a pipeline.
When to use something else
- A pipeline can contain only one
std:stdoutnode, and a runner refuses it where standard output is already bound. A pipeline output is usually the simpler choice; to keep the result, usestd:file-sink.
A tested example #
Nothing here is invented: this is the test “consumes an empty stream” from the pipe's own portable test file, which every conformant runner must pass.
This test sets no parameters.
Empty: nothing is emitted.
Expected result: the run completes.
The same step as a node of a pipeline.yaml:
nodes:
stdout:
pipe: std:stdout
inputs:
in: {from: inputs.in}Notes from the manifest #
The pipe's manifest, OPENFLANGE.md, carries these notes.
Part of the OpenFlange standard library (std, version 0.1).
A sink that writes every item as one NDJSON line to the standard output of the runner process (items are copied byte-for-byte; each batch is written with a single write). Diagnostics never go to standard output.
For a pipeline with a declared output you do not need it: openflange run
binds the sole output to stdout by default. Do not combine it with an output
bound to -; the lines would interleave. It needs no permission grant.
Reference #
- Maturity
- Experimental
- Manifest version
0.1.0
- Normative definition: std:stdin, std:stdout in the standard library specification
- Manifest and tests: std/0.1/stdout in the specification repository