b28abd5eff71f80a102bbada1055e2f88c8e16a3

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3694 from houjunchen/django

Update django.plugin.zsh for Django 1.7.6

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh
  2index 2e9ce1c52e12dd4f408037a141024b5e8a55d27b..35865a692d13e06d7b2cc3ceee627cda853e7e6b 100644
  3--- a/plugins/django/django.plugin.zsh
  4+++ b/plugins/django/django.plugin.zsh
  5@@ -2,59 +2,114 @@
  6 
  7 typeset -ga nul_args
  8 nul_args=(
  9+  '--verbosity=-[verbosity level; 0=minimal output, 1=normal output, 2=all output.]:Verbosity:((0\:minimal 1\:normal 2\:all))'
 10   '--settings=-[the Python path to a settings module.]:file:_files'
 11-  '--pythonpath=-[a directory to add to the Python path.]::directory:_directories'
 12+  '--pythonpath=-[a directory to add to the Python path.]:directory:_directories'
 13   '--traceback[print traceback on exception.]'
 14+  "--no-color[Don't colorize the command output.]"
 15   "--version[show program's version number and exit.]"
 16   {-h,--help}'[show this help message and exit.]'
 17 )
 18 
 19-_managepy-adminindex(){
 20+typeset -ga start_args
 21+start_args=(
 22+  '--template=-[The path or URL to load the template from.]:directory:_directories'
 23+  '--extension=-[The file extension(s) to render (default: "py").]'
 24+  '--name=-[The file name(s) to render.]:file:_files'
 25+)
 26+
 27+typeset -ga db_args
 28+db_args=(
 29+  '--database=-[Nominates a database. Defaults to the "default" database.]'
 30+)
 31+
 32+typeset -ga noinput_args
 33+noinput_args=(
 34+  '--noinput[tells Django to NOT prompt the user for input of any kind.]'
 35+)
 36+
 37+typeset -ga no_init_data_args
 38+no_init_data_args=(
 39+  '--no-initial-data[Tells Django not to load any initial data after database synchronization.]'
 40+)
 41+
 42+typeset -ga tag_args
 43+tag_args=(
 44+  '--tag=-[Run only checks labeled with given tag.]'
 45+  '--list-tags[List available tags.]'
 46+)
 47+
 48+_managepy-check(){
 49   _arguments -s : \
 50-    $nul_args \
 51-    '*::directory:_directories' && ret=0
 52+    $tag_args \
 53+    $nul_args && ret=0
 54+}
 55+
 56+_managepy-changepassword(){
 57+  _arguments -s : \
 58+    $db_args \
 59+    $nul_args && ret=0
 60 }
 61 
 62 _managepy-createcachetable(){
 63   _arguments -s : \
 64+    $db_args \
 65+    $nul_args && ret=0
 66+}
 67+
 68+_managepy-createsuperuser(){
 69+  _arguments -s : \
 70+    '--username=-[Specifies the login for the superuser.]' \
 71+    '--email=-[Specifies the email for the superuser.]' \
 72+    $noinput_args \
 73+    $db_args \
 74     $nul_args && ret=0
 75 }
 76 
 77 _managepy-collectstatic(){
 78   _arguments -s : \
 79-    '--link=-[Create a symbolic link to each file instead of copying.]:' \
 80-    '--noinput=-[Do NOT prompt the user for input of any kind.]:' \
 81-    '--no-post-process=-[Do NOT post process collected files.]:' \
 82-    '--ignore=-[Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.]:' \
 83-    '--dry-run=-[Do everything except modify the filesystem.]:' \
 84-    '--clear=-[Clear the existing files using the storage before trying to copy or link the original file.]:' \
 85-    '--link=-[Create a symbolic link to each file instead of copying.]:' \
 86-    '--no-default-ignore=-[Do not ignore the common private glob-style patterns "CVS", ".*" and "*~".]:' \
 87+    '--link[Create a symbolic link to each file instead of copying.]' \
 88+    '--no-post-process[Do NOT post process collected files.]' \
 89+    '--ignore=-[Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.]' \
 90+    '--dry-run[Do everything except modify the filesystem.]' \
 91+    '--clear[Clear the existing files using the storage before trying to copy or link the original file.]' \
 92+    '--link[Create a symbolic link to each file instead of copying.]' \
 93+    '--no-default-ignore[Do not ignore the common private glob-style patterns "CVS", ".*" and "*~".]' \
 94+    $noinput_args \
 95     $nul_args && ret=0
 96 }
 97 
 98 _managepy-dbshell(){
 99   _arguments -s : \
100+    $db_args \
101     $nul_args && ret=0
102 }
103 
104 _managepy-diffsettings(){