Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming output #79

Open
calvinmetcalf opened this issue Mar 22, 2016 · 0 comments
Open

streaming output #79

calvinmetcalf opened this issue Mar 22, 2016 · 0 comments

Comments

@calvinmetcalf
Copy link

I was looking into a pull to support the yes command but it doesn't look like cash supports streaming of large output streams, one could simulate the yes command in node pretty easily with something like

function yes(explative) {
    explative = explative || 'y';
    return new stream.Readable({
        read() {
              var moreNeeded = true;
              while (moreNeaded) {
                  this.push(explative);
                  moreNeeded = this.push(os.sep);
             }
          }
    });
}

but as far as I could tell there is no way to output stuff continually async wise so that you could catch signals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant