Skip to content

Support STDIN and STDOUT in CLI #179

@ibnesayeed

Description

@ibnesayeed

The current version of the CLI makes it difficult to read/write data from/to STDIN/STDOUT. This means, one has to create named pipes (FIFO files) or temporary compressed or decompressed files on disk for further processing. The current CLI also makes it difficult to concatenate/append compressed or decompressed data from multiple sources (e.g., looping over multiple files) into a single file (with the --force flag it would overwrite existing data rather than appending).

Most of the standard compression tools (like gzip) allow reading from STDIN and writing to STDOUT, which plays well with simple pipes and redirects.

I have tried using /dev/stdin and /dev/stdout as input and output files, but in some circumstances this method does not work as expected (e.g., when trying to append the output to a single file).

Another quality of life improvement would be to introduce a --quiet flag to suppress any warnings or info printed on STDERR.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions