summaryrefslogtreecommitdiff
path: root/installer/testdata/args.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-06-20 16:52:18 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-06-20 07:52:18 -0700
commit575bdb8451042733a8e8a03c33a57b3729fe8538 (patch)
tree68daf5fb92a54d412f3bad1f386249fa1880b7b5 /installer/testdata/args.ts
parent33ffb89f5ca4dc0f671219349a084541da9db7c5 (diff)
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
Diffstat (limited to 'installer/testdata/args.ts')
-rw-r--r--installer/testdata/args.ts9
1 files changed, 9 insertions, 0 deletions
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));