summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorMichaƂ Sabiniarz <31597105+mhvsa@users.noreply.github.com>2019-10-17 16:29:06 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-10-17 10:29:06 -0400
commit75ec9426f3083bff0b0d64e8a7bd7352dfd7f67c (patch)
tree6cb9ee97f08b305a9bbd405943ce7516ea2fae47 /website
parentf51dcc12d7a75a677529d63eb53d7a577d5b9289 (diff)
feat: --reload flag to take arg for partial reload (#3109)
Example: To reload only std modules --reload=https://deno.land/std/
Diffstat (limited to 'website')
-rw-r--r--website/manual.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/website/manual.md b/website/manual.md
index b56c93761..ec5612372 100644
--- a/website/manual.md
+++ b/website/manual.md
@@ -381,6 +381,24 @@ And if you ever want to upgrade to the latest published version:
$ file_server --reload
```
+### Reload specific modules
+
+Sometimes we want to upgrade only some modules. You can control it by passing an
+argument to a `--reload` flag.
+
+To reload everything
+
+`--reload`
+
+To reload all standard modules
+
+`--reload=https://deno.land/std`
+
+To reload specific modules (in this example - colors and file system utils) use
+a comma to separate URLs
+
+`--reload=https://deno.land/std/fs/utils.ts,https://deno.land/std/fmt/colors.ts`
+
### Permissions whitelist
Deno also provides permissions whitelist.
@@ -670,7 +688,7 @@ OPTIONS:
-L, --log-level <log-level> Set log level [possible values: debug, info]
--no-fetch Do not download remote modules
--no-prompt Do not use prompts
- -r, --reload Reload source code cache (recompile TypeScript)
+ -r, --reload=<CACHE_BLACKLIST> Reload source code cache (recompile TypeScript)
--seed <NUMBER> Seed Math.random()
--v8-flags=<v8-flags> Set V8 command line options
--v8-options Print V8 command line options