terumi-project / Terumi

Terumi - Shell scripts, reinvented
MIT License
4 stars 0 forks source link

[REQ] Pipes #14

Open monoclex opened 4 years ago

monoclex commented 4 years ago

Feature description:

Pipes are everywhere in shell scripts, and an important part, as well as writing to files.

Suggested implementation:

@pipe_commands(string source, string destination)
@pipe_commands(string source, string destination1, string destination2)
...

@pipe_commands_to_file(string source, string file_destination, bool append)
@pipe_commands_to_file(string source, string destination1, string file_destination, bool append)
...

source, and destination(n) can be thought of as @command() calls. If file_destination is not a valid file name, the program panics.

monoclex commented 4 years ago

Punted to 0.2.0 as strings may not be viable, some thought is needed.