mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
Use Deno global var instead of built-in "deno" module (denoland/deno_std#247)
Original: 395392912d
This commit is contained in:
parent
fd74b38d36
commit
f90f62fa52
19 changed files with 36 additions and 27 deletions
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import * as deno from "deno";
|
||||
|
||||
async function cat(filenames: string[]): Promise<void> {
|
||||
for (let filename of filenames) {
|
||||
let file = await deno.open(filename);
|
||||
await deno.copy(deno.stdout, file);
|
||||
let file = await Deno.open(filename);
|
||||
await Deno.copy(Deno.stdout, file);
|
||||
file.close();
|
||||
}
|
||||
}
|
||||
|
||||
cat(deno.args.slice(1));
|
||||
cat(Deno.args.slice(1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue