Django

Code

Show
Ignore:
Timestamp:
06/21/06 06:15:01 (2 years ago)
Author:
mtredinnick
Message:

Fixed #1240 -- Updated bash completion file to accomodate changes in r3174.
Thanks, Paolo.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/extras/django_bash_completion

    r2809 r3187  
    3434_django_completion() 
    3535{ 
    36     local cur prev opts actions action_shell_opts 
     36    local cur prev opts actions action_shell_opts action_runfcgi_opts 
    3737    COMPREPLY=() 
    3838    cur="${COMP_WORDS[COMP_CWORD]}" 
     
    4343    # Actions 
    4444    actions="adminindex createcachetable dbshell diffsettings \ 
    45              inspectdb install reset runserver \ 
     45             inspectdb install reset runfcgi runserver \ 
    4646             shell sql sqlall sqlclear sqlindexes sqlinitialdata \ 
    4747             sqlreset sqlsequencereset startapp startproject \ 
     
    4949    # Action's options 
    5050    action_shell_opts="--plain" 
     51    action_runfcgi_opts="host port socket method maxspare minspare maxchildren daemonize pidfile workdir" 
    5152 
    5253    if [[ # django-admin.py, ./manage, manage.py 
     
    6566            -*) 
    6667                COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) 
     68                action=$COMPREPLY 
    6769                return 0 
    6870                ;; 
    6971            *) 
    7072                COMPREPLY=( $(compgen -W "${actions}" -- ${cur}) ) 
     73                action=$COMPREPLY 
    7174                return 0 
    7275                ;; 
     
    9497                return 0 
    9598                ;; 
     99            runfcgi) 
     100                COMPREPLY=( $(compgen -W "$action_runfcgi_opts" -- ${cur}) ) 
     101                return 0 
     102                ;; 
     103            host*|port*|socket*|method*|maxspare*|minspare*|maxchildren*|daemonize*|pidfile*|workdir*) 
     104                if [ "$action"  == "runfcgi" ] ; then 
     105                    COMPREPLY=( $(compgen -W "$action_runfcgi_opts" -- ${cur}) ) 
     106                    return 0 
     107                fi 
     108                return 0 
     109                ;; 
    96110            *) 
    97111                #COMPREPLY=( $(compgen -W "auth core" -- ${cur}) )