1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-18 15:21:16 +02:00

Chris Lamb: 26655: complete custom Django management commands.

This commit is contained in:
Clint Adams 2009-03-01 16:14:33 +00:00
parent 05a7f19f69
commit e47333d0a9
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-03-01 Clint Adams <clint@zsh.org>
* Chris Lamb: 26655: Completion/Unix/Command/_django: complete
custom Django management commands.
2009-02-28 Clint Adams <clint@zsh.org>
* Daniel Friesel: 26636: Completion/X/Command/_mplayer: complete
@ -11271,5 +11276,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4585 $
* $Revision: 1.4586 $
*****************************************************

View file

@ -57,6 +57,15 @@ case $state in
"testserver:run a development server with data from the given fixture(s)"
"validate:validate all installed modules"
)
for cmd in $(./manage.py --help 2>&1 >/dev/null | \
awk -vdrop=1 '{ if (!drop) print substr($0, 3) } /^Available subcommands/ { drop=0 }')
do
if ! echo $subcommands | grep -qs "${cmd}:"
then
subcommands+=($cmd)
fi
done
_describe -t subcommands 'django admin subcommand' subcommands && ret=0
;;