Merge pull request #3 from leggenda47/master

Fix script execution.
This commit is contained in:
Caesar2011
2020-09-08 15:25:39 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ the following code runs `deno --allow-net example.ts` which is located in `/some
```bash
/some/work/dir$ deno --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts
/some/work/dir$ deno run --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts
```
## Thanks to

2
mod.ts
View File

@@ -1,5 +1,5 @@
function startProcess(args: string[] = []): Deno.Process {
return Deno.run({ cmd: ['deno', ...args] });
return Deno.run({ cmd: ['deno', 'run', ...args] });
}
const throttle = 500;