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

make cat.ts work #721

Closed
ry opened this issue Sep 10, 2018 · 0 comments
Closed

make cat.ts work #721

ry opened this issue Sep 10, 2018 · 0 comments
Milestone

Comments

@ry
Copy link
Member

ry commented Sep 10, 2018

import * as deno from "deno";

for (let i = 1; i < deno.argv.length; i++) {
  let filename = deno.argv[i];
  let file = await deno.open(filename);
  await deno.copy(deno.stdout, file);
}

Modulo the top level await.
I'm working on this.

@ry ry added this to the v0.2 milestone Sep 10, 2018
This was referenced Sep 21, 2018
ry added a commit to ry/deno that referenced this issue Sep 27, 2018
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().

Fixes denoland#721. tests/cat.ts works.
ry added a commit to ry/deno that referenced this issue Sep 27, 2018
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().

Fixes denoland#721. tests/cat.ts works.
ry added a commit to ry/deno that referenced this issue Sep 27, 2018
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().

Fixes denoland#721. tests/cat.ts works.
ry added a commit to ry/deno that referenced this issue Sep 27, 2018
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().

Fixes denoland#721. tests/cat.ts works.
ry added a commit to ry/deno that referenced this issue Sep 27, 2018
Adds deno.stdin, deno.stdout, deno.stderr, deno.open(), deno.write(),
deno.read(), deno.Reader, deno.Writer, deno.copy().

Fixes denoland#721. tests/cat.ts works.
@ry ry closed this as completed in bcbbee7 Sep 29, 2018
hardfist pushed a commit to hardfist/deno that referenced this issue Aug 7, 2024
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