diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-06-26 12:02:13 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-26 03:02:13 -0700 |
commit | 6906a2f75e428221f8b9bfa28b2c6821eb3ebe30 (patch) | |
tree | 3068ba5def17237931b76802ec1b25d979316971 /website/manual.md | |
parent | d089f9797830a2729cbd45cb4ea6312eb43a28de (diff) |
feat: deno completions command (#2577)
Diffstat (limited to 'website/manual.md')
-rw-r--r-- | website/manual.md | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/website/manual.md b/website/manual.md index c2e1b99d5..58f13f426 100644 --- a/website/manual.md +++ b/website/manual.md @@ -618,18 +618,19 @@ OPTIONS: --v8-flags=<v8-flags> Set V8 command line options SUBCOMMANDS: - <script> Script to run - bundle Bundle module and dependencies into single file - eval Eval script - fetch Fetch the dependencies - fmt Format files - help Prints this message or the help of the given subcommand(s) - info Show source file related info - install Install script as executable - run Run a program given a filename or url to the source code - types Print runtime TypeScript declarations - version Print the version - xeval Eval a script on text segments from stdin + [SCRIPT] Script to run + bundle Bundle module and dependencies into single file + completions Generate shell completions + eval Eval script + fetch Fetch the dependencies + fmt Format files + help Prints this message or the help of the given subcommand(s) + info Show source file related info + install Install script as executable + run Run a program given a filename or url to the source code + types Print runtime TypeScript declarations + version Print the version + xeval Eval a script on text segments from stdin ENVIRONMENT VARIABLES: DENO_DIR Set deno's base directory @@ -647,6 +648,27 @@ generated and cached source code is written and read to. code can test if `NO_COLOR` was set without having `--allow-env` by using the boolean constant `Deno.noColor`. +### Shell completion + +You can generate completion script for your shell using the +`deno completions <shell>` command. The command outputs to stdout so you should +redirect it to an appropriate file. + +The supported shells are: + +- zsh +- bash +- fish +- powershell +- elvish + +Example: + +```shellsession +deno completions bash > /usr/local/etc/bash_completion.d/deno.bash +source /usr/local/etc/bash_completion.d/deno.bash +``` + ### V8 flags V8 has many many internal command-line flags, that you can see with |