mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Update django.plugin.zsh
Added basic south commands
This commit is contained in:
parent
3913106b2e
commit
0cb2b66be6
1 changed files with 19 additions and 0 deletions
|
|
@ -170,6 +170,22 @@ _managepy-validate() {
|
|||
$nul_args && ret=0
|
||||
}
|
||||
|
||||
#south migrations
|
||||
_managepy-schemamigration(){
|
||||
_arguments -s : \
|
||||
'--initial' \
|
||||
'--auto' \
|
||||
'*::appname:_applist' \
|
||||
$nul_args && ret=0
|
||||
|
||||
}
|
||||
_managepy-migrate(){
|
||||
_arguments -s : \
|
||||
'*::appname:_applist' \
|
||||
$nul_args && ret=0
|
||||
|
||||
}
|
||||
|
||||
_managepy-commands() {
|
||||
local -a commands
|
||||
|
||||
|
|
@ -202,6 +218,9 @@ _managepy-commands() {
|
|||
'test:Runs the test suite for the specified applications, or the entire site if no apps are specified.'
|
||||
'testserver:Runs a development server with data from the given fixture(s).'
|
||||
'validate:Validates all installed models.'
|
||||
'schemamigration: South migrations preparation'
|
||||
'migrate: South migration for specific app'
|
||||
|
||||
)
|
||||
|
||||
_describe -t commands 'manage.py command' commands && ret=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue