Adonis
Adonis copied to clipboard
IO pipe syntax
What part of Adonis is this related to?
Command
What are you suggesting?
Adonis currently has the pipe syntax which allows to run multiple commands.
I propose we should have an IO pipe syntax in which some commands can put their output to another commands input.
Unix uses |
for their io pipe operations but Adonis already uses it so we need another syntax.
My idea is |%d>%d
.
The first %d
would take the nth return argument of the command return and replace the nth arg of the next command being ran.
You should also be able to have multiple input and output args (an equal amount on both sides of course) seperated by a coma |%d,%d,%d>%d,%d,%d
.
How would this be implemented
How would this be implemented
Very simple to implement
If a commands function returns values then they are input args of the new function are replaced with the old ones return values
excellent