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

feat: direct piping to file shortcut #1001

Merged
merged 3 commits into from
Dec 17, 2024
Merged

feat: direct piping to file shortcut #1001

merged 3 commits into from
Dec 17, 2024

Conversation

1e9y
Copy link
Contributor

@1e9y 1e9y commented Dec 17, 2024

Now, instead of

await $`echo "Hello, stdout!"`
  .pipe(fs.createWriteStream('/tmp/output.txt'))

you can simply do

await $`echo "Hello, stdout!"`
  .pipe('/tmp/output.txt')

Fixes #976

  • Tests pass
  • Appropriate changes to README are included in PR

Copy link
Collaborator

@antongolub antongolub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

@antongolub antongolub merged commit 7566081 into google:main Dec 17, 2024
21 checks passed
@antongolub antongolub added the ossln24 OSS Library Night 2024 label Dec 17, 2024
antongolub added a commit to antongolub/zx that referenced this pull request Dec 25, 2024
continues google#978

fix: add missing fs ref to core
continues google#1001
@antongolub antongolub mentioned this pull request Dec 25, 2024
2 tasks
antongolub added a commit that referenced this pull request Dec 25, 2024
* feat: provide stdall piping
continues #978

fix: add missing fs ref to core
continues #1001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ossln24 OSS Library Night 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: provide piping to file
2 participants