You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Percollate can read from stdin when using - (dash) as an operand. To make things a bit more ergonomic, we could consume stdin implicitly when no operands are provided:
Consume from stdin when no operand is provided
For text-based formats, such as html, we could also allow output to stdout with the -o - / --output=- option, to offer better composability with other tools that may wish to process the output further:
Accept --output=- option for placing the result on stdout.
This requires us to output any progress / diagnostic information to stderr instead of stdout:
Log to stderr instead of stdout
Then there's the question of outputting to stdout when multiple inputs are specified along with the --individual flag. Should we just concatenate the results?
The text was updated successfully, but these errors were encountered:
* Fixes#150. Better handling of stdin, stdout, stderr:
* consume input from 'stdin' when no operands are provided
* output all info/errors to 'stderr'
* allow output HTML to 'stdout' with '-o -' option
* Coerce output_path to string before writing to stdout, may be URL (from programmatic API)
Percollate can read from
stdin
when using-
(dash) as an operand. To make things a bit more ergonomic, we could consumestdin
implicitly when no operands are provided:stdin
when no operand is providedFor text-based formats, such as
html
, we could also allow output tostdout
with the-o -
/--output=-
option, to offer better composability with other tools that may wish to process the output further:--output=-
option for placing the result onstdout
.This requires us to output any progress / diagnostic information to
stderr
instead ofstdout
:stderr
instead ofstdout
Then there's the question of outputting to
stdout
when multiple inputs are specified along with the--individual
flag. Should we just concatenate the results?The text was updated successfully, but these errors were encountered: