diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-06-20 16:52:18 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-20 07:52:18 -0700 |
| commit | 575bdb8451042733a8e8a03c33a57b3729fe8538 (patch) | |
| tree | 68daf5fb92a54d412f3bad1f386249fa1880b7b5 /installer/testdata/args.ts | |
| parent | 33ffb89f5ca4dc0f671219349a084541da9db7c5 (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.ts | 9 |
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)); |
