diff options
author | Jaap Aarts <JAicewizard@users.noreply.github.com> | 2020-06-12 16:59:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 10:59:51 -0400 |
commit | 3eee9614732ed8636bb8ebbd6f6a13d44531df6c (patch) | |
tree | de6543a88ec637aec373d0d425bdf958077d89df /docs/getting_started/command_line_interface.md | |
parent | 93573afe8262efa21cf68269618b4416001ea609 (diff) |
document "deno run -" (#6256)
Diffstat (limited to 'docs/getting_started/command_line_interface.md')
-rw-r--r-- | docs/getting_started/command_line_interface.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/getting_started/command_line_interface.md b/docs/getting_started/command_line_interface.md index e8538cd3f..dfbd551a9 100644 --- a/docs/getting_started/command_line_interface.md +++ b/docs/getting_started/command_line_interface.md @@ -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 |