Ports #
A source: it has no inputs.
| Port | Direction | Kind | Required | Description |
|---|---|---|---|---|
out | output | records | yes |
Parameters #
This pipe has no parameters.
When to use it #
- A pipeline that should always read the runner's standard input, whatever it is started from.
- A shell pipeline in which the runner is one step between other commands.
When to use something else
- A pipeline can contain only one
std:stdinnode, and a runner refuses it where standard input is already bound — for example whenopenflange runbinds a pipeline input to stdin. A pipeline input is usually the simpler choice.
A tested example #
Nothing here is invented: this is the test “the output may be left to the test runner (empty standard input)” from the pipe's own portable test file, which every conformant runner must pass.
This test sets no parameters.
This test gives the pipe no input.
The test leaves this output to the runner.
The same step as a node of a pipeline.yaml:
nodes:
stdin:
pipe: std:stdinNotes from the manifest #
The pipe's manifest, OPENFLANGE.md, carries these notes.
Part of the OpenFlange standard library (std, version 0.1).
A source that reads NDJSON from the standard input of the runner process and
emits one item per line (UTF-8, one JSON value per line, blank lines and
invalid JSON are E_FORMAT). It ends at end of input.
Use it inside a pipeline that should read stdin itself. For a pipeline with a
declared input you do not need it: openflange run binds the sole input to
stdin by default. A pipeline must not contain more than one std:stdin node, and a runner refuses it (E_UNSUPPORTED) where standard input is already bound. 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/stdin in the specification repository