heroku 8.1.9 → 8.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/README.md +5 -6
  2. package/autocomplete-scripts/README.md +7 -0
  3. package/autocomplete-scripts/bash/heroku.bash +59 -0
  4. package/autocomplete-scripts/brew/bash +4 -0
  5. package/autocomplete-scripts/brew/zsh/_heroku +59 -0
  6. package/autocomplete-scripts/zsh/_heroku +53 -0
  7. package/bin/bats-test-runner.js +7 -0
  8. package/bin/dev +17 -0
  9. package/bin/dev.cmd +3 -0
  10. package/bin/run +36 -1
  11. package/lib/analytics.d.ts +2 -2
  12. package/lib/analytics.js +3 -4
  13. package/lib/commands/auth/2fa/disable.d.ts +7 -0
  14. package/lib/commands/auth/2fa/disable.js +16 -0
  15. package/lib/commands/auth/2fa/index.d.ts +6 -0
  16. package/lib/commands/auth/2fa/index.js +18 -0
  17. package/lib/commands/auth/login.d.ts +8 -0
  18. package/lib/commands/auth/login.js +25 -0
  19. package/lib/commands/auth/logout.d.ts +6 -0
  20. package/lib/commands/auth/logout.js +14 -0
  21. package/lib/commands/auth/token.d.ts +7 -0
  22. package/lib/commands/auth/token.js +31 -0
  23. package/lib/commands/auth/whoami.d.ts +7 -0
  24. package/lib/commands/auth/whoami.js +26 -0
  25. package/lib/commands/authorizations/create.d.ts +13 -0
  26. package/lib/commands/authorizations/create.js +41 -0
  27. package/lib/commands/authorizations/index.d.ts +9 -0
  28. package/lib/commands/authorizations/index.js +35 -0
  29. package/lib/commands/authorizations/info.d.ts +11 -0
  30. package/lib/commands/authorizations/info.js +25 -0
  31. package/lib/commands/authorizations/revoke.d.ts +10 -0
  32. package/lib/commands/authorizations/revoke.js +22 -0
  33. package/lib/commands/authorizations/rotate.d.ts +8 -0
  34. package/lib/commands/authorizations/rotate.js +19 -0
  35. package/lib/commands/authorizations/update.d.ts +13 -0
  36. package/lib/commands/authorizations/update.js +36 -0
  37. package/lib/commands/autocomplete/create.d.ts +29 -0
  38. package/lib/commands/autocomplete/create.js +213 -0
  39. package/lib/commands/autocomplete/doctor.d.ts +12 -0
  40. package/lib/commands/autocomplete/doctor.js +97 -0
  41. package/lib/commands/autocomplete/index.d.ts +12 -0
  42. package/lib/commands/autocomplete/index.js +67 -0
  43. package/lib/commands/autocomplete/options.d.ts +25 -0
  44. package/lib/commands/autocomplete/options.js +210 -0
  45. package/lib/commands/autocomplete/script.d.ts +10 -0
  46. package/lib/commands/autocomplete/script.js +23 -0
  47. package/lib/commands/buildpacks/add.d.ts +13 -0
  48. package/lib/commands/buildpacks/add.js +43 -0
  49. package/lib/commands/buildpacks/clear.d.ts +9 -0
  50. package/lib/commands/buildpacks/clear.js +17 -0
  51. package/lib/commands/buildpacks/index.d.ts +9 -0
  52. package/lib/commands/buildpacks/index.js +25 -0
  53. package/lib/commands/buildpacks/info.d.ts +8 -0
  54. package/lib/commands/buildpacks/info.js +41 -0
  55. package/lib/commands/buildpacks/remove.d.ts +13 -0
  56. package/lib/commands/buildpacks/remove.js +55 -0
  57. package/lib/commands/buildpacks/search.d.ts +13 -0
  58. package/lib/commands/buildpacks/search.js +69 -0
  59. package/lib/commands/buildpacks/set.d.ts +13 -0
  60. package/lib/commands/buildpacks/set.js +42 -0
  61. package/lib/commands/buildpacks/versions.d.ts +8 -0
  62. package/lib/commands/buildpacks/versions.js +56 -0
  63. package/lib/commands/certs/auto/wait.d.ts +9 -0
  64. package/lib/commands/certs/auto/wait.js +14 -0
  65. package/lib/commands/ci/index.d.ts +12 -0
  66. package/lib/commands/ci/index.js +25 -0
  67. package/lib/commands/ci/info.d.ts +14 -0
  68. package/lib/commands/ci/info.js +29 -0
  69. package/lib/commands/ci/last.d.ts +11 -0
  70. package/lib/commands/ci/last.js +31 -0
  71. package/lib/commands/ci/rerun.d.ts +13 -0
  72. package/lib/commands/ci/rerun.js +53 -0
  73. package/lib/commands/ci/run.d.ts +10 -0
  74. package/lib/commands/ci/run.js +42 -0
  75. package/lib/commands/clients/create.d.ts +14 -0
  76. package/lib/commands/clients/create.js +37 -0
  77. package/lib/commands/clients/destroy.d.ts +8 -0
  78. package/lib/commands/clients/destroy.js +18 -0
  79. package/lib/commands/clients/index.d.ts +8 -0
  80. package/lib/commands/clients/index.js +32 -0
  81. package/lib/commands/clients/info.d.ts +13 -0
  82. package/lib/commands/clients/info.js +33 -0
  83. package/lib/commands/clients/rotate.d.ts +12 -0
  84. package/lib/commands/clients/rotate.js +33 -0
  85. package/lib/commands/clients/update.d.ts +13 -0
  86. package/lib/commands/clients/update.js +38 -0
  87. package/lib/commands/config/edit.d.ts +23 -0
  88. package/lib/commands/config/edit.js +132 -0
  89. package/lib/commands/config/get.d.ts +16 -0
  90. package/lib/commands/config/get.js +35 -0
  91. package/lib/commands/config/index.d.ts +11 -0
  92. package/lib/commands/config/index.js +33 -0
  93. package/lib/commands/config/unset.d.ts +12 -0
  94. package/lib/commands/config/unset.js +51 -0
  95. package/lib/commands/console.d.ts +11 -0
  96. package/lib/commands/console.js +30 -0
  97. package/lib/commands/domains/add.d.ts +19 -0
  98. package/lib/commands/domains/add.js +117 -0
  99. package/lib/commands/domains/clear.d.ts +11 -0
  100. package/lib/commands/domains/clear.js +26 -0
  101. package/lib/commands/domains/index.d.ts +40 -0
  102. package/lib/commands/domains/index.js +79 -0
  103. package/lib/commands/domains/info.d.ts +14 -0
  104. package/lib/commands/domains/info.js +25 -0
  105. package/lib/commands/domains/remove.d.ts +14 -0
  106. package/lib/commands/domains/remove.js +26 -0
  107. package/lib/commands/domains/update.d.ts +15 -0
  108. package/lib/commands/domains/update.js +40 -0
  109. package/lib/commands/domains/wait.d.ts +13 -0
  110. package/lib/commands/domains/wait.js +32 -0
  111. package/lib/commands/git/clone.d.ts +13 -0
  112. package/lib/commands/git/clone.js +29 -0
  113. package/lib/commands/git/credentials.d.ts +9 -0
  114. package/lib/commands/git/credentials.js +32 -0
  115. package/lib/commands/git/remote.d.ts +11 -0
  116. package/lib/commands/git/remote.js +44 -0
  117. package/lib/commands/labs/disable.d.ts +11 -0
  118. package/lib/commands/labs/disable.js +65 -0
  119. package/lib/commands/local/index.d.ts +17 -0
  120. package/lib/commands/local/index.js +75 -0
  121. package/lib/commands/local/run.d.ts +11 -0
  122. package/lib/commands/local/run.js +38 -0
  123. package/lib/commands/local/version.d.ts +5 -0
  124. package/lib/commands/local/version.js +13 -0
  125. package/lib/commands/logs.d.ts +16 -0
  126. package/lib/commands/logs.js +45 -0
  127. package/lib/commands/pipelines/add.d.ts +14 -0
  128. package/lib/commands/pipelines/add.js +61 -0
  129. package/lib/commands/pipelines/connect.d.ts +12 -0
  130. package/lib/commands/pipelines/connect.js +52 -0
  131. package/lib/commands/pipelines/create.d.ts +15 -0
  132. package/lib/commands/pipelines/create.js +91 -0
  133. package/lib/commands/pipelines/destroy.d.ts +9 -0
  134. package/lib/commands/pipelines/destroy.js +27 -0
  135. package/lib/commands/pipelines/diff.d.ts +19 -0
  136. package/lib/commands/pipelines/diff.js +152 -0
  137. package/lib/commands/pipelines/index.d.ts +9 -0
  138. package/lib/commands/pipelines/index.js +27 -0
  139. package/lib/commands/pipelines/info.d.ts +13 -0
  140. package/lib/commands/pipelines/info.js +43 -0
  141. package/lib/commands/pipelines/open.d.ts +9 -0
  142. package/lib/commands/pipelines/open.js +19 -0
  143. package/lib/commands/pipelines/promote.d.ts +12 -0
  144. package/lib/commands/pipelines/promote.js +216 -0
  145. package/lib/commands/pipelines/remove.d.ts +10 -0
  146. package/lib/commands/pipelines/remove.js +23 -0
  147. package/lib/commands/pipelines/rename.d.ts +10 -0
  148. package/lib/commands/pipelines/rename.js +33 -0
  149. package/lib/commands/pipelines/setup.d.ts +14 -0
  150. package/lib/commands/pipelines/setup.js +91 -0
  151. package/lib/commands/pipelines/transfer.d.ts +13 -0
  152. package/lib/commands/pipelines/transfer.js +65 -0
  153. package/lib/commands/pipelines/update.d.ts +11 -0
  154. package/lib/commands/pipelines/update.js +32 -0
  155. package/lib/commands/ps/autoscale/disable.d.ts +9 -0
  156. package/lib/commands/ps/autoscale/disable.js +35 -0
  157. package/lib/commands/ps/autoscale/enable.d.ts +13 -0
  158. package/lib/commands/ps/autoscale/enable.js +65 -0
  159. package/lib/commands/ps/wait.d.ts +12 -0
  160. package/lib/commands/ps/wait.js +78 -0
  161. package/lib/commands/rake.d.ts +14 -0
  162. package/lib/commands/rake.js +46 -0
  163. package/lib/commands/regions.d.ts +11 -0
  164. package/lib/commands/regions.js +45 -0
  165. package/lib/commands/reviewapps/disable.d.ts +17 -0
  166. package/lib/commands/reviewapps/disable.js +102 -0
  167. package/lib/commands/reviewapps/enable.d.ts +14 -0
  168. package/lib/commands/reviewapps/enable.js +89 -0
  169. package/lib/commands/run/detached.d.ts +15 -0
  170. package/lib/commands/run/detached.js +56 -0
  171. package/lib/commands/run/index.d.ts +18 -0
  172. package/lib/commands/run/index.js +64 -0
  173. package/lib/commands/run/inside.d.ts +15 -0
  174. package/lib/commands/run/inside.js +55 -0
  175. package/lib/commands/sessions/destroy.d.ts +8 -0
  176. package/lib/commands/sessions/destroy.js +18 -0
  177. package/lib/commands/sessions/index.d.ts +8 -0
  178. package/lib/commands/sessions/index.js +31 -0
  179. package/lib/commands/status.d.ts +8 -0
  180. package/lib/commands/status.js +46 -0
  181. package/lib/commands/webhooks/add.d.ts +16 -0
  182. package/lib/commands/webhooks/add.js +47 -0
  183. package/lib/commands/webhooks/deliveries/index.d.ts +12 -0
  184. package/lib/commands/webhooks/deliveries/index.js +80 -0
  185. package/lib/commands/webhooks/deliveries/info.d.ts +14 -0
  186. package/lib/commands/webhooks/deliveries/info.js +42 -0
  187. package/lib/commands/webhooks/events/index.d.ts +11 -0
  188. package/lib/commands/webhooks/events/index.js +46 -0
  189. package/lib/commands/webhooks/events/info.d.ts +14 -0
  190. package/lib/commands/webhooks/events/info.js +31 -0
  191. package/lib/commands/webhooks/index.d.ts +11 -0
  192. package/lib/commands/webhooks/index.js +45 -0
  193. package/lib/commands/webhooks/info.d.ts +14 -0
  194. package/lib/commands/webhooks/info.js +31 -0
  195. package/lib/commands/webhooks/remove.d.ts +14 -0
  196. package/lib/commands/webhooks/remove.js +29 -0
  197. package/lib/commands/webhooks/update.d.ts +19 -0
  198. package/lib/commands/webhooks/update.js +41 -0
  199. package/lib/file.js +2 -3
  200. package/lib/global_telemetry.d.ts +53 -0
  201. package/lib/global_telemetry.js +82 -0
  202. package/lib/hooks/command_not_found/performance_analytics.d.ts +3 -0
  203. package/lib/hooks/command_not_found/performance_analytics.js +7 -0
  204. package/lib/hooks/init/terms-of-service.js +3 -4
  205. package/lib/hooks/init/version.d.ts +2 -1
  206. package/lib/hooks/init/version.js +1 -2
  207. package/lib/hooks/postrun/performance_analytics.d.ts +3 -0
  208. package/lib/hooks/postrun/performance_analytics.js +11 -0
  209. package/lib/hooks/prerun/analytics.d.ts +2 -1
  210. package/lib/hooks/prerun/analytics.js +4 -4
  211. package/lib/hooks/recache.d.ts +3 -0
  212. package/lib/hooks/recache.js +56 -0
  213. package/lib/hooks/update/brew.d.ts +2 -1
  214. package/lib/hooks/update/brew.js +3 -5
  215. package/lib/hooks/update/completions.d.ts +2 -1
  216. package/lib/hooks/update/completions.js +2 -3
  217. package/lib/hooks/update/plugin-migrate.d.ts +2 -1
  218. package/lib/hooks/update/plugin-migrate.js +3 -5
  219. package/lib/hooks/update/tidy.d.ts +2 -1
  220. package/lib/hooks/update/tidy.js +3 -5
  221. package/lib/lib/authorizations/authorizations.d.ts +2 -0
  222. package/lib/lib/authorizations/authorizations.js +39 -0
  223. package/lib/lib/autocomplete/base.d.ts +11 -0
  224. package/lib/lib/autocomplete/base.js +44 -0
  225. package/lib/lib/autocomplete/cache.d.ts +2 -0
  226. package/lib/lib/autocomplete/cache.js +28 -0
  227. package/lib/lib/autocomplete/completions.d.ts +37 -0
  228. package/lib/lib/autocomplete/completions.js +261 -0
  229. package/lib/lib/buildpacks/buildpacks.d.ts +32 -0
  230. package/lib/lib/buildpacks/buildpacks.js +161 -0
  231. package/lib/lib/buildpacks/push.d.ts +0 -0
  232. package/lib/lib/buildpacks/push.js +4 -0
  233. package/lib/lib/ci/git.d.ts +8 -0
  234. package/lib/lib/ci/git.js +71 -0
  235. package/lib/lib/ci/interfaces/kolkrabbi.d.ts +311 -0
  236. package/lib/lib/ci/interfaces/kolkrabbi.js +7 -0
  237. package/lib/lib/ci/pipelines.d.ts +3 -0
  238. package/lib/lib/ci/pipelines.js +57 -0
  239. package/lib/lib/ci/source.d.ts +2 -0
  240. package/lib/lib/ci/source.js +42 -0
  241. package/lib/lib/ci/test-run.d.ts +5 -0
  242. package/lib/lib/ci/test-run.js +232 -0
  243. package/lib/lib/clients/clients.d.ts +1 -0
  244. package/lib/lib/clients/clients.js +25 -0
  245. package/lib/lib/config/quote.d.ts +2 -0
  246. package/lib/lib/config/quote.js +33 -0
  247. package/lib/lib/config/util.d.ts +3 -0
  248. package/lib/lib/config/util.js +12 -0
  249. package/lib/lib/domains/wait-for-domain.d.ts +3 -0
  250. package/lib/lib/domains/wait-for-domain.js +19 -0
  251. package/lib/lib/git/git.d.ts +8 -0
  252. package/lib/lib/git/git.js +56 -0
  253. package/lib/lib/local/fork-foreman.d.ts +1 -0
  254. package/lib/lib/local/fork-foreman.js +33 -0
  255. package/lib/lib/local/load-foreman-procfile.d.ts +0 -0
  256. package/lib/lib/local/load-foreman-procfile.js +2 -0
  257. package/lib/lib/local/run-foreman.d.ts +0 -0
  258. package/lib/lib/local/run-foreman.js +2 -0
  259. package/lib/lib/pipelines/api.d.ts +25 -0
  260. package/lib/lib/pipelines/api.js +130 -0
  261. package/lib/lib/pipelines/disambiguate.d.ts +3 -0
  262. package/lib/lib/pipelines/disambiguate.js +49 -0
  263. package/lib/lib/pipelines/github-api.d.ts +8 -0
  264. package/lib/lib/pipelines/github-api.js +18 -0
  265. package/lib/lib/pipelines/infer.d.ts +1 -0
  266. package/lib/lib/pipelines/infer.js +11 -0
  267. package/lib/lib/pipelines/key-by.d.ts +1 -0
  268. package/lib/lib/pipelines/key-by.js +11 -0
  269. package/lib/lib/pipelines/kolkrabbi-api.d.ts +14 -0
  270. package/lib/lib/pipelines/kolkrabbi-api.js +62 -0
  271. package/lib/lib/pipelines/ownership.d.ts +4 -0
  272. package/lib/lib/pipelines/ownership.js +40 -0
  273. package/lib/lib/pipelines/render-pipeline.d.ts +6 -0
  274. package/lib/lib/pipelines/render-pipeline.js +52 -0
  275. package/lib/lib/pipelines/setup/create-apps.d.ts +1 -0
  276. package/lib/lib/pipelines/setup/create-apps.js +44 -0
  277. package/lib/lib/pipelines/setup/get-ci-settings.d.ts +4 -0
  278. package/lib/lib/pipelines/setup/get-ci-settings.js +19 -0
  279. package/lib/lib/pipelines/setup/get-github-token.d.ts +1 -0
  280. package/lib/lib/pipelines/setup/get-github-token.js +10 -0
  281. package/lib/lib/pipelines/setup/get-name-and-repo.d.ts +1 -0
  282. package/lib/lib/pipelines/setup/get-name-and-repo.js +47 -0
  283. package/lib/lib/pipelines/setup/get-repo.d.ts +1 -0
  284. package/lib/lib/pipelines/setup/get-repo.js +8 -0
  285. package/lib/lib/pipelines/setup/get-settings.d.ts +9 -0
  286. package/lib/lib/pipelines/setup/get-settings.js +39 -0
  287. package/lib/lib/pipelines/setup/poll-app-setups.d.ts +1 -0
  288. package/lib/lib/pipelines/setup/poll-app-setups.js +25 -0
  289. package/lib/lib/pipelines/setup/setup-pipeline.d.ts +1 -0
  290. package/lib/lib/pipelines/setup/setup-pipeline.js +15 -0
  291. package/lib/lib/pipelines/setup/validate.d.ts +9 -0
  292. package/lib/lib/pipelines/setup/validate.js +31 -0
  293. package/lib/lib/pipelines/stages.d.ts +7 -0
  294. package/lib/lib/pipelines/stages.js +22 -0
  295. package/lib/lib/run/colorize.d.ts +2 -0
  296. package/lib/lib/run/colorize.js +300 -0
  297. package/lib/lib/run/dyno.d.ts +72 -0
  298. package/lib/lib/run/dyno.js +397 -0
  299. package/lib/lib/run/helpers.d.ts +2 -0
  300. package/lib/lib/run/helpers.js +34 -0
  301. package/lib/lib/run/line-transform.d.ts +4 -0
  302. package/lib/lib/run/line-transform.js +26 -0
  303. package/lib/lib/run/log-displayer.d.ts +10 -0
  304. package/lib/lib/run/log-displayer.js +79 -0
  305. package/lib/lib/sessions/sessions.d.ts +7 -0
  306. package/lib/lib/sessions/sessions.js +2 -0
  307. package/lib/lib/status/util.d.ts +1 -0
  308. package/lib/lib/status/util.js +14 -0
  309. package/lib/lib/webhooks/base.d.ts +13 -0
  310. package/lib/lib/webhooks/base.js +28 -0
  311. package/lib/user-config.js +2 -3
  312. package/oclif.manifest.json +3376 -2
  313. package/package.json +80 -43
  314. package/lib/hooks/update/b.d.ts +0 -2
  315. package/lib/hooks/update/b.js +0 -48
package/package.json CHANGED
@@ -1,39 +1,29 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "8.1.9",
4
+ "version": "8.2.0-beta.1",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
8
8
  "dependencies": {
9
9
  "@heroku-cli/color": "1.1.14",
10
- "@heroku-cli/command": "^9.0.2",
10
+ "@heroku-cli/command": "^10.0.0",
11
+ "@heroku-cli/notifications": "^1.2.2",
11
12
  "@heroku-cli/plugin-addons-v5": "^8.1.7",
12
- "@heroku-cli/plugin-apps": "^8.1.8",
13
13
  "@heroku-cli/plugin-apps-v5": "^8.1.8",
14
- "@heroku-cli/plugin-auth": "^8.1.7",
15
- "@heroku-cli/plugin-autocomplete": "^8.1.7",
16
- "@heroku-cli/plugin-buildpacks": "^8.1.7",
17
- "@heroku-cli/plugin-certs": "^8.1.7",
18
14
  "@heroku-cli/plugin-certs-v5": "^8.1.7",
19
- "@heroku-cli/plugin-ci": "^8.1.7",
20
15
  "@heroku-cli/plugin-ci-v5": "^8.1.8",
21
- "@heroku-cli/plugin-config": "^8.1.7",
22
16
  "@heroku-cli/plugin-container-registry-v5": "^8.1.7",
23
- "@heroku-cli/plugin-git": "^8.1.8",
24
- "@heroku-cli/plugin-local": "^8.1.9",
25
- "@heroku-cli/plugin-oauth-v5": "^8.1.9",
26
17
  "@heroku-cli/plugin-orgs-v5": "^8.1.4",
27
- "@heroku-cli/plugin-pg-v5": "^8.1.7",
28
- "@heroku-cli/plugin-pipelines": "^8.1.7",
18
+ "@heroku-cli/plugin-pg-v5": "^8.2.0-beta.0",
29
19
  "@heroku-cli/plugin-ps": "^8.1.7",
30
20
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
31
21
  "@heroku-cli/plugin-redis-v5": "^8.1.7",
32
- "@heroku-cli/plugin-run": "^8.1.4",
33
22
  "@heroku-cli/plugin-spaces": "^8.1.7",
34
- "@heroku-cli/plugin-status": "^8.1.7",
35
- "@heroku-cli/plugin-webhooks": "^8.1.7",
36
- "@oclif/core": "^1.26.2",
23
+ "@heroku-cli/schema": "^1.0.25",
24
+ "@heroku/buildpack-registry": "^1.0.1",
25
+ "@heroku/eventsource": "^1.0.7",
26
+ "@oclif/core": "^2.8.11",
37
27
  "@oclif/plugin-commands": "2.2.2",
38
28
  "@oclif/plugin-help": "^5",
39
29
  "@oclif/plugin-legacy": "^1.3.0",
@@ -43,28 +33,62 @@
43
33
  "@oclif/plugin-version": "^1.2.1",
44
34
  "@oclif/plugin-warn-if-update-available": "2.0.29",
45
35
  "@oclif/plugin-which": "2.2.8",
36
+ "ansi-escapes": "3.2.0",
37
+ "async-file": "^2.0.2",
38
+ "chalk": "^2.4.2",
39
+ "date-fns": "^2.30.0",
46
40
  "debug": "4.1.1",
41
+ "dotenv": "^16.3.1",
42
+ "edit-string": "^1.1.6",
47
43
  "execa": "5.1.1",
44
+ "foreman": "^3.0.1",
48
45
  "fs-extra": "7.0.1",
46
+ "github-url-to-object": "^4.0.4",
47
+ "got": "^9.6.0",
48
+ "heroku-cli-util": "^8.0.12",
49
49
  "http-call": "5.3.0",
50
+ "inquirer": "^7.3.0",
51
+ "lodash": "^4.17.11",
50
52
  "netrc-parser": "3.1.6",
53
+ "node-fetch": "^2.6.7",
54
+ "phoenix": "^1.6.14",
55
+ "rollbar": "^2.26.2",
51
56
  "semver": "5.6.0",
52
- "tslib": "1.14.1",
53
- "uuid": "3.3.2"
57
+ "shell-escape": "^0.2.0",
58
+ "shell-quote": "^1.6.1",
59
+ "tmp": "^0.0.33",
60
+ "true-myth": "2.2.3",
61
+ "urijs": "^1.19.11",
62
+ "uuid": "3.3.2",
63
+ "valid-url": "^1.0.9",
64
+ "validator": "^13.7.0",
65
+ "ws": "^6.2.2"
54
66
  },
55
67
  "devDependencies": {
56
- "@oclif/test": "^2.2.20",
68
+ "@heroku-cli/schema": "^1.0.25",
69
+ "@oclif/test": "^2.3.25",
57
70
  "@types/ansi-styles": "^3.2.1",
58
71
  "@types/chai": "^4.1.7",
59
72
  "@types/debug": "^4.1.2",
60
73
  "@types/fs-extra": "^5.0.5",
61
74
  "@types/glob": "^7.1.1",
75
+ "@types/got": "^9.6.7",
76
+ "@types/inquirer": "7.3.0",
62
77
  "@types/lodash": "^4.14.123",
63
78
  "@types/mocha": "^5.2.6",
64
79
  "@types/nock": "^9.3.1",
80
+ "@types/node-fetch": "^2.1.6",
81
+ "@types/phoenix": "^1.4.0",
82
+ "@types/proxyquire": "^1.3.28",
83
+ "@types/shell-escape": "^0.2.0",
65
84
  "@types/supports-color": "^5.3.0",
85
+ "@types/urijs": "^1.19.4",
86
+ "@types/uuid": "^8.3.0",
87
+ "@types/validator": "^10.9.0",
66
88
  "@types/write-json-file": "^3.2.1",
89
+ "@types/ws": "^6.0.1",
67
90
  "aws-sdk": "^2.421.0",
91
+ "bats": "^1.1.0",
68
92
  "chai": "^4.2.0",
69
93
  "globby": "^10.0.2",
70
94
  "lodash": "^4.17.11",
@@ -72,20 +96,24 @@
72
96
  "nock": "^10.0.6",
73
97
  "nyc": "^15.1.0",
74
98
  "oclif": "3.8.1",
99
+ "open": "^8.4.2",
100
+ "proxyquire": "^2.1.0",
75
101
  "qqjs": "0.3.11",
76
102
  "read-pkg": "^4.0.1",
77
103
  "sinon": "^7.2.4",
78
104
  "ts-node": "^10.9.1",
105
+ "tslib": "1.14.1",
79
106
  "typescript": "4.8.4"
80
107
  },
81
108
  "engines": {
82
109
  "node": ">=14"
83
110
  },
84
111
  "files": [
85
- "/oclif.manifest.json",
112
+ "/autocomplete-scripts",
86
113
  "/bin",
87
114
  "/lib",
88
115
  "/npm-shrinkwrap.json",
116
+ "/oclif.manifest.json",
89
117
  "/yarn.lock"
90
118
  ],
91
119
  "homepage": "https://cli.heroku.com",
@@ -107,30 +135,15 @@
107
135
  "plugins": [
108
136
  "@oclif/plugin-legacy",
109
137
  "@heroku-cli/plugin-addons-v5",
110
- "@heroku-cli/plugin-apps",
111
138
  "@heroku-cli/plugin-apps-v5",
112
- "@heroku-cli/plugin-auth",
113
- "@heroku-cli/plugin-autocomplete",
114
- "@heroku-cli/plugin-buildpacks",
115
- "@heroku-cli/plugin-certs",
116
139
  "@heroku-cli/plugin-certs-v5",
117
140
  "@heroku-cli/plugin-ci-v5",
118
- "@heroku-cli/plugin-ci",
119
- "@heroku-cli/plugin-config",
120
141
  "@heroku-cli/plugin-container-registry-v5",
121
- "@heroku-cli/plugin-git",
122
- "@heroku-cli/plugin-local",
123
- "@heroku-cli/plugin-oauth-v5",
124
142
  "@heroku-cli/plugin-orgs-v5",
125
143
  "@heroku-cli/plugin-pg-v5",
126
- "@heroku-cli/plugin-pipelines",
127
- "@heroku-cli/plugin-ps",
128
144
  "@heroku-cli/plugin-ps-exec",
129
145
  "@heroku-cli/plugin-redis-v5",
130
- "@heroku-cli/plugin-run",
131
146
  "@heroku-cli/plugin-spaces",
132
- "@heroku-cli/plugin-status",
133
- "@heroku-cli/plugin-webhooks",
134
147
  "@oclif/plugin-commands",
135
148
  "@oclif/plugin-help",
136
149
  "@oclif/plugin-not-found",
@@ -156,6 +169,9 @@
156
169
  "apps": {
157
170
  "description": "manage apps on Heroku"
158
171
  },
172
+ "authorizations": {
173
+ "description": "OAuth authorizations"
174
+ },
159
175
  "buildpacks": {
160
176
  "description": "scripts used to compile apps"
161
177
  },
@@ -165,6 +181,9 @@
165
181
  "ci": {
166
182
  "description": "test runner for Heroku Pipelines"
167
183
  },
184
+ "clients": {
185
+ "description": "OAuth clients on the platform"
186
+ },
168
187
  "commands": {
169
188
  "hidden": true
170
189
  },
@@ -198,6 +217,9 @@
198
217
  "local": {
199
218
  "description": "run Heroku app locally"
200
219
  },
220
+ "logs": {
221
+ "description": "display recent log output"
222
+ },
201
223
  "maintenance": {
202
224
  "description": "enable/disable access to app"
203
225
  },
@@ -208,6 +230,12 @@
208
230
  "ps": {
209
231
  "description": "manage app dynos"
210
232
  },
233
+ "run": {
234
+ "description": "run a one-off process inside a Heroku dyno"
235
+ },
236
+ "sessions": {
237
+ "description": "OAuth sessions"
238
+ },
211
239
  "stack": {
212
240
  "description": "list available stacks",
213
241
  "hidden": true
@@ -231,12 +259,20 @@
231
259
  "prerun": [
232
260
  "./lib/hooks/prerun/analytics"
233
261
  ],
262
+ "postrun": [
263
+ "./lib/hooks/postrun/performance_analytics"
264
+ ],
265
+ "command_not_found": [
266
+ "./lib/hooks/command_not_found/performance_analytics"
267
+ ],
234
268
  "update": [
235
269
  "./lib/hooks/update/plugin-migrate",
236
- "./lib/hooks/update/b",
270
+ "./lib/hooks/update/brew",
237
271
  "./lib/hooks/update/completions",
238
- "./lib/hooks/update/tidy"
239
- ]
272
+ "./lib/hooks/update/tidy",
273
+ "./lib/hooks/recache"
274
+ ],
275
+ "recache": "./lib/hooks/recache"
240
276
  },
241
277
  "update": {
242
278
  "node": {
@@ -279,13 +315,14 @@
279
315
  "build": "rm -rf lib && tsc",
280
316
  "postpublish": "rm -f oclif.manifest.json",
281
317
  "prepack": "yarn run build && oclif manifest",
282
- "pretest": "tsc -p test --noEmit",
318
+ "pretest": "lerna run prepack --concurrency 4 && tsc -p test --noEmit",
283
319
  "test": "nyc mocha --forbid-only \"test/**/*.unit.test.ts\"",
284
- "test:acceptance": "mocha --forbid-only \"test/**/*.acceptance.test.ts\"",
320
+ "test:acceptance": "mocha --forbid-only \"test/**/*.acceptance.test.ts\" && node ./bin/bats-test-runner",
321
+ "test:integration": "mocha --forbid-only \"test/**/*.integration.test.ts\"",
285
322
  "test:smoke": "mocha --forbid-only \"test/**/smoke.acceptance.test.ts\"",
286
323
  "posttest": "yarn lint",
287
324
  "version": "oclif readme --multi && git add README.md ../../docs"
288
325
  },
289
326
  "types": "lib/index.d.ts",
290
- "gitHead": "ba951f2557997ab903bb90e5a0d07e49bd89167c"
327
+ "gitHead": "3c7876133a3d64d888f3fa43b001ff457b8458e6"
291
328
  }
@@ -1,2 +0,0 @@
1
- import { Hook } from '@oclif/core';
2
- export declare const brewHook: Hook<'update'>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.brewHook = void 0;
4
- const tslib_1 = require("tslib");
5
- const child_process_1 = require("child_process");
6
- const path = tslib_1.__importStar(require("path"));
7
- const fs = tslib_1.__importStar(require("../../file"));
8
- const debug = require('debug')('heroku:brewhook');
9
- function brew(args, opts = {}) {
10
- debug('brew %o', args);
11
- return (0, child_process_1.spawnSync)('brew', args, Object.assign(Object.assign({ stdio: 'inherit' }, opts), { encoding: 'utf8' }));
12
- }
13
- const brewHook = async function () {
14
- if (this.config.platform !== 'darwin')
15
- return;
16
- const brewRoot = path.join(process.env.HOMEBREW_PREFIX || '/usr/local');
17
- let binPath;
18
- try {
19
- binPath = fs.realpathSync(path.join(brewRoot, 'bin/heroku'));
20
- }
21
- catch (error) {
22
- if (error.code === 'ENOENT')
23
- return;
24
- throw error;
25
- }
26
- let cellarPath;
27
- if (binPath && binPath.startsWith(path.join(brewRoot, 'Cellar'))) {
28
- cellarPath = path.resolve(binPath, path.dirname(path.relative(binPath, path.join(brewRoot, 'Cellar/heroku'))));
29
- }
30
- const fetchInstallReceipt = async () => {
31
- if (!cellarPath)
32
- return;
33
- return fs.readJSON(path.join(cellarPath, 'INSTALL_RECEIPT.json'));
34
- };
35
- const needsMigrate = async () => {
36
- const receipt = await fetchInstallReceipt();
37
- if (!receipt)
38
- return false;
39
- return receipt.source.tap === 'homebrew/core';
40
- };
41
- if (!await needsMigrate())
42
- return;
43
- debug('migrating from brew');
44
- // not on private tap, move to it
45
- brew(['uninstall', 'heroku']);
46
- brew(['install', 'heroku/brew/heroku']);
47
- };
48
- exports.brewHook = brewHook;