document "deno run -" (#6256)

This commit is contained in:
Jaap Aarts 2020-06-12 16:59:51 +02:00 committed by GitHub
parent 93573afe82
commit 3eee961473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View file

@ -29,6 +29,18 @@ deno bundle --help
Detailed guides to each subcommand can be found [here](../tools.md).
### Script source
Deno can grab the scripts from multiple sources, a filename, a url, and '-' to
read the file from stdin. The later is useful for integration with other
applications.
```shell
deno run main.ts
deno run https://mydomain.com/main.ts
cat main.ts | deno run -
```
### Script arguments
Separately from the Deno runtime flags, you can pass user-space arguments to the