diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/_drush | 191 |
1 files changed, 0 insertions, 191 deletions
diff --git a/src/_drush b/src/_drush deleted file mode 100644 index d52921f..0000000 --- a/src/_drush +++ /dev/null @@ -1,191 +0,0 @@ -#compdef drush -# ------------------------------------------------------------------------------ -# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of the zsh-users nor the -# names of its contributors may be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# ------------------------------------------------------------------------------ -# Description -# ----------- -# -# Completion script for Drush (https://drushcommands.com/). -# -# ------------------------------------------------------------------------------ -# Authors -# ------- -# -# * Vasily Kraev (https://github.com/vasilykraev) -# -# ------------------------------------------------------------------------------ - -_drush() { - local curcontext='$curcontext' state line cmds ret=1 - integer NORMARG - typeset -A opt_args - - global_args=('--debug' '--verbose' '--yes' '--no' '--simulate' '--root=' '--uri=') - - _arguments -C \ - '(--*)'{--version,--version}'[Show drush version.]' \ - '(- *)'{-d,--debug}'[Display even more information, including internal messages.]' \ - '(- *)'{-v,--verbose}'[Display extra information about the command.]' \ - '(- *)'{-y,--yes}'[Assume "yes" as answer to all prompts.]' \ - '(- *)'{-n,--no}'[Assume "no" as answer to all prompts.]' \ - '(- *)'{-s,--simulate}'[Simulate all relevant actions (don'\''t actually change the system).]' \ - '(- *)'{-r,--root=}'[Drupal root directory to use (default: current directory).]' \ - '(- *)'{-l,--uri=}'[URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).]' \ - '1: :->cmds' \ - '*::arg:->args' \ - && ret=0 - -case $state in - cmds) - _values 'drush command' \ - '(archive-dump)'{archive-dump,ard,arb}'[Backup your code, files, and database into a single file.]' \ - '(archive-restore)'{archive-restore,arr}'[Expand a site archive into a Drupal web site.]' \ - '(cache-clear)'{cache-clear,cc}'[Clear a specific cache, or all drupal caches.]' \ - '(core-status)'{core-status,status,st}'[Provides a birds-eye view of the current Drupal installation, if any.]' \ - '(core-cron)'{core-cron,cron}'[Run all cron hooks in all active modules for specified site.]' \ - '(core-execute)'{core-execute,exec}'[Execute a shell command. Usually used with a site alias.]' \ - '(drupal-directory)'{drupal-directory,dd}'[Return the filesystem path for modules/themes and other key folders.]' \ - 'help[Print this help message.]' \ - 'image-flush[Flush all derived images for a given style.]' \ - '(site-alias)'{site-alias,sa}'[Print an alias record.]' \ - '(site-install)'{site-install,si}'[Install Drupal along with modules/themes/configuration using the specified install profile.]' \ - 'test-clean[Clean temporary tables and files.]' \ - 'test-run[Run tests. Note that you must use the --uri option.]' \ - '(updatedb)'{updatedb,updb}'[Apply any database updates required (as with running update.php).]' \ - '(variable-delete)'{variable-delete,vdel}'[Delete a variable.]' \ - '(variable-get)'{variable-get,vget}'[Get a list of some or all site variables and values.]' \ - '(variable-set)'{variable-set,vset}'[Set a variable.]' \ - '(pm-list)'{pm-list,pml}'[Show a list of available extensions (modules and themes).]' \ - '(pm-disable)'{pm-disable,dis}'[Disable one or more extensions (modules or themes). Disable dependent extensions as well.]' \ - '(pm-download)'{pm-download,dl}'[Download projects from drupal.org or other sources.]' \ - '(pm-enable)'{pm-enable,en}'[Enable one or more extensions (modules or themes). Enable dependent extensions as well.]' \ - 'pm-uninstall[Uninstall one or more modules.]' \ - 'pm-update[Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).]' \ - '(sql-cli)'{sql-cli,sqlc}'[Open a SQL command-line interface using Drupals credentials.]' \ - 'sql-drop[Drop all tables in a given database.]' \ - 'sql-dump[Exports the Drupal DB as SQL using mysqldump or equivalent.]' \ |
