From 575bdb8451042733a8e8a03c33a57b3729fe8538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 20 Jun 2019 16:52:18 +0200 Subject: improve installer (denoland/deno_std#512) - remove uninstall command - add --reload to deno fetch - to ensure subsequent installation upgrades script and deps - fix executable shebang - fix prompt for subsequent installation - support custom installation dir via -d/--dir flag Original: https://github.com/denoland/deno_std/commit/b13441fe8af151f60cdc2336c53a7196f56fd5b0 --- installer/testdata/args.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 installer/testdata/args.ts (limited to 'installer/testdata/args.ts') diff --git a/installer/testdata/args.ts b/installer/testdata/args.ts new file mode 100644 index 000000000..484cab5ab --- /dev/null +++ b/installer/testdata/args.ts @@ -0,0 +1,9 @@ +function args(args: string[]) { + const map = {}; + for (let i = 0; i < args.length; i++) { + map[i] = args[i]; + } + Deno.stdout.write(new TextEncoder().encode(JSON.stringify(map))); +} + +args(Deno.args.slice(1)); -- cgit v1.2.3