diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-30 03:16:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 21:16:48 -0500 |
commit | 73a3cc21d0e7ceec1275078db125f57ce97725fb (patch) | |
tree | 17d845d5d125d3ba8ecefa49e57e02e9c088c68b /std/manual.md | |
parent | f0a6062012c4e09553877c9feedb3fbc3d4625b9 (diff) |
feat: dprint formatter (#3820)
* rewrite fmt_test in Rust, remove tools/fmt_test.py
* remove //std/prettier
Diffstat (limited to 'std/manual.md')
-rw-r--r-- | std/manual.md | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/std/manual.md b/std/manual.md index f29256bd9..c3117bd9d 100644 --- a/std/manual.md +++ b/std/manual.md @@ -847,7 +847,7 @@ $ echo 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrc Installation directory can be changed using `-d/--dir` flag: ```shell -$ deno install --dir /usr/local/bin prettier https://deno.land/std/prettier/main.ts --allow-write --allow-read +$ deno install --dir /usr/local/bin file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read ``` When installing a script you can specify permissions that will be used to run @@ -857,13 +857,11 @@ additional CLI flags you want to pass to the script. Example: ```shell -$ deno install format_check https://deno.land/std/prettier/main.ts --allow-write --allow-read --check --print-width 88 --tab-width 2 +$ deno install file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read 8080 ``` -Above command creates an executable called `format_check` that runs `prettier` -with write and read permissions. When you run `format_check` deno will run -prettier in `check` mode and configured to use `88` column width with `2` column -tabs. +Above command creates an executable called `file_server` that runs with write +and read permissions and binds to port 8080. It is a good practice to use `import.meta.main` idiom for an entry point for executable file. See |