Changeset 3187 for django/trunk/extras
- Timestamp:
- 06/21/06 06:15:01 (2 years ago)
- Files:
-
- django/trunk/extras/django_bash_completion (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/extras/django_bash_completion
r2809 r3187 34 34 _django_completion() 35 35 { 36 local cur prev opts actions action_shell_opts 36 local cur prev opts actions action_shell_opts action_runfcgi_opts 37 37 COMPREPLY=() 38 38 cur="${COMP_WORDS[COMP_CWORD]}" … … 43 43 # Actions 44 44 actions="adminindex createcachetable dbshell diffsettings \ 45 inspectdb install reset run server \45 inspectdb install reset runfcgi runserver \ 46 46 shell sql sqlall sqlclear sqlindexes sqlinitialdata \ 47 47 sqlreset sqlsequencereset startapp startproject \ … … 49 49 # Action's options 50 50 action_shell_opts="--plain" 51 action_runfcgi_opts="host port socket method maxspare minspare maxchildren daemonize pidfile workdir" 51 52 52 53 if [[ # django-admin.py, ./manage, manage.py … … 65 66 -*) 66 67 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) 68 action=$COMPREPLY 67 69 return 0 68 70 ;; 69 71 *) 70 72 COMPREPLY=( $(compgen -W "${actions}" -- ${cur}) ) 73 action=$COMPREPLY 71 74 return 0 72 75 ;; … … 94 97 return 0 95 98 ;; 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 ;; 96 110 *) 97 111 #COMPREPLY=( $(compgen -W "auth core" -- ${cur}) )
