f7deb52c478e3ae7045320130c1aa8ca9dca993f

Author
Christophe Coevoet <stof@notk.org>
Committer
Christophe Coevoet <stof@notk.org>
Date

Message

Update the list of Heroku Postgres commands

Diff

 1diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
 2index 46663303ac8e50ab7e491881a9bc03c23509a850..bb2f7403f697f6b24bbd80f8a343fcd423a94cbe 100644
 3--- a/plugins/heroku/_heroku
 4+++ b/plugins/heroku/_heroku
 5@@ -27,8 +27,6 @@ _1st_arguments=(
 6   "config\:push":"push local config vars to heroku"
 7   "config\:set":"set one or more config vars"
 8   "config\:unset":"unset one or more config vars"
 9-  "db\:push":"push local data up to your app"
10-  "db\:pull":"pull heroku data down into your local database"
11   "domains":"list custom domains for an app"
12   "domains\:add":"add a custom domain to an app"
13   "domains\:remove":"remove a custom domain from an app"
14@@ -43,12 +41,20 @@ _1st_arguments=(
15   "logs\:drains":"manage syslog drains"
16   "maintenance\:on":"put the app into maintenance mode"
17   "maintenance\:off":"take the app out of maintenance mode"
18+  "pg\:credentials":"display the DATABASE credentials"
19+  "pg\:diagnose":"run diagnostics report on DATABASE"
20   "pg\:info":"display database information"
21-  "pg\:ingress":"allow direct connections to the database from this IP for one minute"
22+  "pg\:kill":"kill a query"
23+  "pg\:killall":"terminates ALL connections"
24+  "pg\:maintenance":"manage maintenance for DATABASE"
25   "pg\:promote":"sets DATABASE as your DATABASE_URL"
26+  "pg\:ps":"view active queries with execution time"
27   "pg\:psql":"open a psql shell to the database"
28+  "pg\:pull":"pull from REMOTE_SOURCE_DATABASE to LOCAL_TARGET_DATABASE"
29+  "pg\:push":"push from LOCAL_SOURCE_DATABASE to REMOTE_TARGET_DATABASE"
30   "pg\:reset":"delete all data in DATABASE"
31   "pg\:unfollow":"stop a replica from following and make it a read/write database"
32+  "pg\:upgrade":"unfollow a database and upgrade it to the latest PostgreSQL version"
33   "pg\:wait":"monitor database creation, exit when complete"
34   "pgbackups":"list captured backups"
35   "pgbackups\:url":"get a temporary URL for a backup"
36@@ -108,26 +114,6 @@ case "$words[1]" in
37       '(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \
38     )
39     ;;
40-  db:push)
41-    _command_args=(
42-      '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \
43-      '(-d|--debug)'{-d,--debug}'[enable debugging output]' \
44-      '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the push]' \
45-      '(-f|--filter)'{-f,--filter}'[only push certain tables]' \
46-      '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \
47-      '(-t|--tables)'{-t,--tables}'[only push the specified tables]' \
48-    )
49-    ;;
50-  db:pull)
51-    _command_args=(
52-      '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \
53-      '(-d|--debug)'{-d,--debug}'[enable debugging output]' \
54-      '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the pull]' \
55-      '(-f|--filter)'{-f,--filter}'[only pull certain tables]' \
56-      '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \
57-      '(-t|--tables)'{-t,--tables}'[only pull the specified tables]' \
58-    )
59-    ;;
60   keys)
61     _command_args=(
62       '(-l|--long)'{-l,--long}'[display extended information for each key]' \