summaryrefslogtreecommitdiff
path: root/cli/tests/cat.ts
blob: bd6b5af06c2293eb8bece4512d80df21164a1b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
const { stdout, open, copy, args } = Deno;

async function main(): Promise<void> {
  for (let i = 1; i < args.length; i++) {
    const filename = args[i];
    const file = await open(filename);
    await copy(file, stdout);
  }
}

main();