summaryrefslogtreecommitdiff
path: root/std/bundle/run.ts
blob: fb848a671ea498eab10c59ec9411456329b28b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.

import { evaluate, instantiate, load } from "./utils.ts";

async function main(args: string[]): Promise<void> {
  const text = await load(args);
  const result = evaluate(text);
  instantiate(...result);
}

main(Deno.args);