Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

LoadExperimental

std:stdout #

Sink: the runner's standard output as NDJSON.

For example: print results for the next shell command.

A pipe is a data processing step with declared inputs and outputs; standard pipes are built into the runner.

Ports #

std:stdout takes in and produces no outputs.std:stdoutinrecords
std:stdout takes in and produces no outputs.std:stdoutinrecords
Named ports from the latest published contract. Dashed lines are optional ports.

A sink: it has no outputs.

Ports of std:stdout
PortDirectionKindRequiredDescription
ininputrecordsyes

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, grep or another command line tool from a pipeline.

When to use something else

  • A pipeline can contain only one std:stdout node, and a runner refuses it where standard output is already bound. A pipeline output is usually the simpler choice; to keep the result, use std: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.

Parameters

This test sets no parameters.

Input: in

Empty: nothing is emitted.

Expected output: —

Expected result: the run completes.

The same step as a node of a pipeline.yaml:

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