diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2009-03-01 16:14:33 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2009-03-01 16:14:33 +0000 |
| commit | e47333d0a907293d57d90b4c922f17d7ab0207d5 (patch) | |
| tree | 1e8f012e2b8cb116d97d4e02d0f901b8f915225d /Completion/Unix/Command/_django | |
| parent | Daniel Friesel: 26636: complete .flac files for mplayer. (diff) | |
| download | zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar.gz zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar.bz2 zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar.lz zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar.xz zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.tar.zst zsh-e47333d0a907293d57d90b4c922f17d7ab0207d5.zip | |
Chris Lamb: 26655: complete custom Django management commands.
Diffstat (limited to 'Completion/Unix/Command/_django')
| -rw-r--r-- | Completion/Unix/Command/_django | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_django b/Completion/Unix/Command/_django index 82d5910f3..20d93c376 100644 --- a/Completion/Unix/Command/_django +++ b/Completion/Unix/Command/_django @@ -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 ;; |
