Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 488 Bytes

stdin.md

File metadata and controls

15 lines (12 loc) · 488 Bytes

Stdin (//context/stdio/stdin)

Read text from the STDIN of the process invoking the flow until EOF is detected, after which it will not run again. If you wish to get the value of a line (i.e. after ENTER is pressed, then use readline)

Include using

[[process]]
source = "context://stdio/stdin"

Inputs

Output

  • text - Text read from STDIN - with leading and trailing whitespace (including EOF) trimmed.
  • json - Json value parsed from from STDIN