onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
242 stars 28 forks source link

Provide mechanism to pipe text to a process #97

Open bsutton opened 4 years ago

bsutton commented 4 years ago

How do we do the equivalent of:

echo "secret" | ssh-vault -u <github.com/user> create

bsutton commented 4 years ago

This does work: ('echo ${secretStuff}' | '$vaultPath -u ${Shell.current.loggedInUser} create').run;

but really want to be able to do: echo(${secretStuff}) | '$vaultPath -u ${Shell.current.loggedInUser} create'.run;