dc7eee4db08a39ad73af67363f3d29b495cbd13f
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
2new file mode 100644
3index 0000000000000000000000000000000000000000..dc899e2b2a3e07b6d36501b4b1b6f4f6211302db
4--- /dev/null
5+++ b/plugins/heroku/_heroku
6@@ -0,0 +1,158 @@
7+#compdef heroku
8+
9+# Heroku Autocomplete plugin for Oh-My-Zsh
10+# Requires: The Heroku client gem (https://github.com/heroku/heroku)
11+# Author: Ali B. (http://awhitebox.com)
12+
13+local -a _1st_arguments
14+_1st_arguments=(
15+ "account\:confirm_billing":"Confirm that your account can be billed at the end of the month"
16+ "addons":"list installed addons"
17+ "addons\:list":"list all available addons"
18+ "addons\:add":"install an addon"
19+ "addons\:upgrade":"upgrade an existing addon"
20+ "addons\:downgrade":"downgrade an existing addon"
21+ "addons\:remove":"uninstall an addon"
22+ "addons\:open":"open an addon's dashboard in your browser"
23+ "apps":"list your apps"
24+ "apps\:info":"show detailed app information"
25+ "apps\:create":"create a new app"
26+ "apps\:rename":"rename the app"
27+ "apps\:open":"open the app in a web browser"
28+ "apps\:destroy":"permanently destroy an app"
29+ "auth\:login":"log in with your heroku credentials"
30+ "auth\:logout":"clear local authentication credentials"
31+ "config":"display the config vars for an app"
32+ "config\:add":"add one or more config vars"
33+ "config\:remove":"remove a config var"
34+ "db\:push":"push local data up to your app"
35+ "db\:pull":"pull heroku data down into your local database"
36+ "domains":"list custom domains for an app"
37+ "domains\:add":"add a custom domain to an app"
38+ "domains\:remove":"remove a custom domain from an app"
39+ "domains\:clear":"remove all custom domains from an app"
40+ "help":"list available commands or display help for a specific command"
41+ "keys":"display keys for the current user"
42+ "keys\:add":"add a key for the current user"
43+ "keys\:remove":"remove a key from the current user"
44+ "keys\:clear":"remove all authentication keys from the current user"
45+ "logs":"display recent log output"
46+ "logs\:cron":"DEPRECATED: display cron logs from legacy logging"
47+ "logs\:drains":"manage syslog drains"
48+ "maintenance\:on":"put the app into maintenance mode"
49+ "maintenance\:off":"take the app out of maintenance mode"
50+ "pg\:info":"display database information"
51+ "pg\:ingress":"allow direct connections to the database from this IP for one minute"
52+ "pg\:promote":"sets DATABASE as your DATABASE_URL"
53+ "pg\:psql":"open a psql shell to the database"
54+ "pg\:reset":"delete all data in DATABASE"
55+ "pg\:unfollow":"stop a replica from following and make it a read/write database"
56+ "pg\:wait":"monitor database creation, exit when complete"
57+ "pgbackups":"list captured backups"
58+ "pgbackups\:url":"get a temporary URL for a backup"
59+ "pgbackups\:capture":"capture a backup from a database id"
60+ "pgbackups\:restore":"restore a backup to a database"
61+ "pgbackups\:destroy":"destroys a backup"
62+ "plugins":"list installed plugins"
63+ "plugins\:install":"install a plugin"
64+ "plugins\:uninstall":"uninstall a plugin"
65+ "ps\:dynos":"scale to QTY web processes"
66+ "ps\:workers":"scale to QTY background processes"
67+ "ps":"list processes for an app"
68+ "ps\:restart":"restart an app process"
69+ "ps\:scale":"scale processes by the given amount"
70+ "releases":"list releases"
71+ "releases\:info":"view detailed information for a release"
72+ "rollback":"roll back to an older release"
73+ "run":"run an attached process"
74+ "run\:rake":"remotely execute a rake command"
75+ "run\:console":"open a remote console session"
76+ "sharing":"list collaborators on an app"
77+ "sharing\:add":"add a collaborator to an app"
78+ "sharing\:remove":"remove a collaborator from an app"
79+ "sharing\:transfer":"transfer an app to a new owner"
80+ "ssl":"list certificates for an app"
81+ "ssl\:add":"add an ssl certificate to an app"
82+ "ssl\:remove":"remove an ssl certificate from an app"
83+ "ssl\:clear":"remove all ssl certificates from an app"
84+ "stack":"show the list of available stacks"
85+ "stack\:migrate":"prepare migration of this app to a new stack"
86+ "version":"show heroku client version"
87+)
88+
89+_arguments '*:: :->command'
90+
91+if (( CURRENT == 1 )); then
92+ _describe -t commands "heroku command" _1st_arguments
93+ return
94+fi
95+
96+local -a _command_args
97+case "$words[1]" in
98+ apps:info)
99+ _command_args=(
100+ '(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \
101+ )
102+ ;;
103+ apps:create)
104+ _command_args=(
105+ '(-a|--addons)'{-a,--addons}'[a list of addons to install]' \