This all depends on how the transform cli consumes input. Some possibilities:
Differentiate with a type:
transform string // reads stdin as one large string
transform nd-strings // reads stdin as many newline-delimited strings
transform json // reads stdin as one large json doc
transform ndjson // reads stdin as many newline-delimited json docs
Differentiate with a flag:
transform string // reads stdin as one large string
transform -d="\n" string // reads stdin as many newline-delimited strings
transform json // reads stdin as one large json doc
transform -d="\n" json // reads stdin as many newline-delimited json docs
I want all of these to work:
and
and
This all depends on how the
transform
cli consumes input. Some possibilities:Differentiate with a type:
Differentiate with a flag: