c3493dc5ceb87a5c74d288f30fbe4bdbf4cb97c5

Author
rco-ableton <rco@ableton.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add Heroku pipelines support (#5660)

Diff

 1diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
 2index 878d3ce1ba6d73977b16c9543d56e09a6e305aff..f26595e00ed9bf5072eaf6207578d878e23f0dcb 100644
 3--- a/plugins/heroku/_heroku
 4+++ b/plugins/heroku/_heroku
 5@@ -45,6 +45,18 @@ _1st_arguments=(
 6   "logs\:drains":"manage syslog drains"
 7   "maintenance\:on":"put the app into maintenance mode"
 8   "maintenance\:off":"take the app out of maintenance mode"
 9+  "pipelines":"list pipelines you have access to"
10+  "pipelines\:add":"add this app to a pipeline"
11+  "pipelines\:create":"create a new pipeline"
12+  "pipelines\:destroy":"destroy a pipeline"
13+  "pipelines\:diff":"compares the latest release of this app to its downstream app(s)"
14+  "pipelines\:info":"show list of apps in a pipeline"
15+  "pipelines\:list":"list pipelines you have access to"
16+  "pipelines\:open":"open a pipeline in dashboard"
17+  "pipelines\:promote":"promote the latest release of this app to its downstream app(s)"
18+  "pipelines\:remove":"remove this app from its pipeline"
19+  "pipelines\:rename":"rename a pipeline"
20+  "pipelines\:update":"update this app's stage in a pipeline"
21   "pg\:credentials":"display the DATABASE credentials"
22   "pg\:diagnose":"run diagnostics report on DATABASE"
23   "pg\:info":"display database information"
24@@ -131,6 +143,41 @@ case "$words[1]" in
25       '(-t|--tail)'{-t,--tail}'[continually stream logs]' \
26     )
27     ;;
28+  pipelines)
29+    _command_args=(
30+      '(--json)'--json'[output in json format]' \
31+    )
32+    ;;
33+  pipelines:add)
34+    _command_args=(
35+      '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
36+    )
37+    ;;
38+  pipelines:create)
39+    _command_args=(
40+      '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
41+    )
42+    ;;
43+  pipelines:info)
44+    _command_args=(
45+      '(--json)'--json'[output in json format]' \
46+    )
47+    ;;
48+  pipelines:list)
49+    _command_args=(
50+      '(--json)'--json'[output in json format]' \
51+    )
52+    ;;
53+  pipelines:promote)
54+    _command_args=(
55+      '(-t|--to)'{-t,--to}'[comma separated list of apps to promote to]' \
56+    )
57+    ;;
58+  pipelines:update)
59+    _command_args=(
60+      '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
61+    )
62+    ;;
63   pgbackups:capture)
64     _command_args=(
65       '(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \