dthree / dthree/cash

streaming output

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
198
PR merge metrics
No merged PRs in 30d

Description

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

``` js
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

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by tracing Cash's output handling and its use of Node streams. Determine how continuous asynchronous output should work while still allowing signal handling, then verify the behavior with a command that produces an ongoing stream.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.