108fe7c93338100048a4f6217e3731cdb0dbc8e6

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

Message

Merge pull request #1707 from bkg/django-static

Add django plugin command

Diff

 1diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh
 2index 0bbd031fe01c257af863551e5be86e6a3ea023b5..9d898edca0e5bb154010c2efc539d52b17a2819f 100644
 3--- a/plugins/django/django.plugin.zsh
 4+++ b/plugins/django/django.plugin.zsh
 5@@ -20,6 +20,19 @@ _managepy-createcachetable(){
 6     $nul_args && ret=0
 7 }
 8 
 9+_managepy-collectstatic(){
10+  _arguments -s : \
11+    '--link=-[Create a symbolic link to each file instead of copying.]:' \
12+    '--noinput=-[Do NOT prompt the user for input of any kind.]:' \
13+    '--no-post-process=-[Do NOT post process collected files.]:' \
14+    '--ignore=-[Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.]:' \
15+    '--dry-run=-[Do everything except modify the filesystem.]:' \
16+    '--clear=-[Clear the existing files using the storage before trying to copy or link the original file.]:' \
17+    '--link=-[Create a symbolic link to each file instead of copying.]:' \
18+    '--no-default-ignore=-[Do not ignore the common private glob-style patterns "CVS", ".*" and "*~".]:' \
19+    $nul_args && ret=0
20+}
21+
22 _managepy-dbshell(){
23   _arguments -s : \
24     $nul_args && ret=0
25@@ -163,6 +176,7 @@ _managepy-commands() {
26   commands=(
27     'adminindex:prints the admin-index template snippet for the given app name(s).'
28     'createcachetable:creates the table needed to use the SQL cache backend.'
29+    'collectstatic:Collect static files in a single location.'
30     'dbshell:runs the command-line client for the current DATABASE_ENGINE.'
31     "diffsettings:displays differences between the current settings.py and Django's default settings."
32     'dumpdata:Output the contents of the database as a fixture of the given format.'
33@@ -220,4 +234,5 @@ _managepy() {
34 
35 compdef _managepy manage.py
36 compdef _managepy django
37+compdef _managepy django-admin.py
38 compdef _managepy django-manage