Skip to content

completion

Dump the shell completion script

The *%command.name%</> command dumps the shell completion script required to use shell autocompletion (currently, bash, fish, zsh completion are supported).

Static installation -------------------</>

Dump the script to a global completion file and restart your shell:

*%command.full_name% bash | sudo tee /etc/bash_completion.d/polymer</>

Or dump the script to a local file and source it:

*%command.full_name% bash > completion.sh</>

<comment># source the file whenever you use the project</>
*source completion.sh</>

<comment># or add this line at the end of your "~/.bashrc" file:</>
*source /path/to/completion.sh</>

Dynamic installation --------------------</>

Add this to the end of your shell configuration file (e.g. *"~/.bashrc"</>):

*eval "$(/home/runner/work/polymer-drupal-monorepo/polymer-drupal-monorepo/tests/fixture/vendor/bin/polymer completion bash)"</>

Arguments

  • [shell]. The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given

Options

  • --debug. Tail the completion debug log

Global Options

  • -h, --help. Display help for the given command. When no command is given display help for the list command
  • -q, --quiet. Do not output any message
  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -V, --version. Display this application version
  • --ansi. Force (or disable --no-ansi) ANSI output
  • -n, --no-interaction. Do not ask any interactive question
  • --simulate. Run in simulated mode (show what would have happened).
  • --progress-delay=PROGRESS-DELAY. Number of seconds before progress bar is displayed in long-running task collections. Default: 2s.
  • -D, --define=DEFINE. Define a configuration item value.
  • --environment=ENVIRONMENT. Set the environment to load config from polymer/[env].polymer.yml file.
  • --site=SITE. The multisite to execute this command against.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.