From 75ec9426f3083bff0b0d64e8a7bd7352dfd7f67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sabiniarz?= <31597105+mhvsa@users.noreply.github.com> Date: Thu, 17 Oct 2019 16:29:06 +0200 Subject: feat: --reload flag to take arg for partial reload (#3109) Example: To reload only std modules --reload=https://deno.land/std/ --- website/manual.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'website') 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 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= Reload source code cache (recompile TypeScript) --seed Seed Math.random() --v8-flags= Set V8 command line options --v8-options Print V8 command line options -- cgit v1.2.3