73001e9382db99ebd6effcf0bdcd227985109142

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

refactor(django): remove deprecated `django` plugin

BREAKING CHANGE: the `django` plugin was deprecated in 2021-09-22. With
this change it has now been removed altogether. Zsh already provides
built-in completion for Django commands.

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/django/README.md b/plugins/django/README.md
  2deleted file mode 100644
  3index cfab43980b97939aa7f2e3aba76119861bbde05c..0000000000000000000000000000000000000000
  4--- a/plugins/django/README.md
  5+++ /dev/null
  6@@ -1,12 +0,0 @@
  7-# Django plugin
  8-
  9-This plugin adds completion for the [Django Project](https://www.djangoproject.com/) commands
 10-(`manage.py`, `django-admin`, ...).
 11-
 12-## Deprecation (2021-09-22)
 13-
 14-The plugin used to provide completion for `./manage.py` and `django-admin`, but Zsh already provides
 15-a better, more extensive completion for those, so this plugin is no longer needed.
 16-
 17-Right now a warning message is shown, but in the near future the plugin will stop working altogether.
 18-So you can remove it from your plugins and you'll automatically start using Zsh's django completion.
 19diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh
 20deleted file mode 100644
 21index a07a308895aa0b90dc6ce1769de87c517dae5058..0000000000000000000000000000000000000000
 22--- a/plugins/django/django.plugin.zsh
 23+++ /dev/null
 24@@ -1,407 +0,0 @@
 25-#compdef manage.py
 26-
 27-typeset -ga nul_args
 28-nul_args=(
 29-  '--verbosity=-[verbosity level; 0=minimal output, 1=normal output, 2=all output.]:Verbosity:((0\:minimal 1\:normal 2\:all))'
 30-  '--settings=-[the Python path to a settings module.]:file:_files'
 31-  '--pythonpath=-[a directory to add to the Python path.]:directory:_directories'
 32-  '--traceback[print traceback on exception.]'
 33-  "--no-color[Don't colorize the command output.]"
 34-  "--version[show program's version number and exit.]"
 35-  {-h,--help}'[show this help message and exit.]'
 36-)
 37-
 38-typeset -ga start_args
 39-start_args=(
 40-  '--template=-[The path or URL to load the template from.]:directory:_directories'
 41-  '--extension=-[The file extension(s) to render (default: "py").]'
 42-  '--name=-[The file name(s) to render.]:file:_files'
 43-)
 44-
 45-typeset -ga db_args
 46-db_args=(
 47-  '--database=-[Nominates a database. Defaults to the "default" database.]'
 48-)
 49-
 50-typeset -ga noinput_args
 51-noinput_args=(
 52-  '--noinput[tells Django to NOT prompt the user for input of any kind.]'
 53-)
 54-
 55-typeset -ga no_init_data_args
 56-no_init_data_args=(
 57-  '--no-initial-data[Tells Django not to load any initial data after database synchronization.]'
 58-)
 59-
 60-typeset -ga tag_args
 61-tag_args=(
 62-  '--tag=-[Run only checks labeled with given tag.]'
 63-  '--list-tags[List available tags.]'
 64-)
 65-
 66-_managepy-check(){
 67-  _arguments -s : \
 68-    $tag_args \
 69-    $nul_args && ret=0
 70-}
 71-
 72-_managepy-changepassword(){
 73-  _arguments -s : \
 74-    $db_args \
 75-    $nul_args && ret=0
 76-}
 77-
 78-_managepy-createcachetable(){
 79-  _arguments -s : \
 80-    $db_args \
 81-    $nul_args && ret=0
 82-}
 83-
 84-_managepy-createsuperuser(){
 85-  _arguments -s : \
 86-    '--username=-[Specifies the login for the superuser.]' \
 87-    '--email=-[Specifies the email for the superuser.]' \
 88-    $noinput_args \
 89-    $db_args \
 90-    $nul_args && ret=0
 91-}
 92-
 93-_managepy-collectstatic(){
 94-  _arguments -s : \
 95-    '--link[Create a symbolic link to each file instead of copying.]' \
 96-    '--no-post-process[Do NOT post process collected files.]' \
 97-    '--ignore=-[Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.]' \
 98-    '--dry-run[Do everything except modify the filesystem.]' \
 99-    '--clear[Clear the existing files using the storage before trying to copy or link the original file.]' \
100-    '--link[Create a symbolic link to each file instead of copying.]' \
101-    '--no-default-ignore[Do not ignore the common private glob-style patterns "CVS", ".*" and "*~".]' \
102-    $noinput_args \
103-    $nul_args && ret=0
104-}
105-
106-_managepy-dbshell(){
107-  _arguments -s : \
108-    $db_args \
109-    $nul_args && ret=0
110-}
111-
112-_managepy-diffsettings(){
113-  _arguments -s : \
114-    "--all[Display all settings, regardless of their value.]"
115-    $nul_args && ret=0
116-}
117-
118-_managepy-dumpdata(){
119-  _arguments -s : \
120-    '--format=-[Specifies the output serialization format for fixtures.]:format:(json yaml xml)' \
121-    '--indent=-[Specifies the indent level to use when pretty-printing output.]' \
122-    '--exclude=-[An app_label or app_label.ModelName to exclude (use multiple --exclude to exclude multiple apps/models).]' \
123-    '--natural-foreign[Use natural foreign keys if they are available.]' \