mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
document "deno run -" (#6256)
This commit is contained in:
parent
93573afe82
commit
3eee961473
2 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue