mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
f113312ef2
Original: 5440377495
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
// 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);
|
|
file.close();
|
|
}
|
|
}
|
|
|
|
cat(deno.args.slice(1));
|