heroku 9.3.3-beta.0 → 9.4.0

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 (138) hide show
  1. package/lib/commands/access/add.js +1 -1
  2. package/lib/commands/access/index.js +2 -1
  3. package/lib/commands/access/update.js +1 -1
  4. package/lib/commands/addons/attach.js +1 -1
  5. package/lib/commands/addons/create.js +1 -1
  6. package/lib/commands/addons/destroy.js +1 -1
  7. package/lib/commands/addons/detach.js +1 -1
  8. package/lib/commands/addons/docs.js +1 -1
  9. package/lib/commands/addons/info.js +1 -1
  10. package/lib/commands/addons/open.js +1 -1
  11. package/lib/commands/addons/plans.js +1 -1
  12. package/lib/commands/addons/rename.js +2 -2
  13. package/lib/commands/addons/upgrade.js +2 -2
  14. package/lib/commands/addons/wait.js +1 -1
  15. package/lib/commands/apps/open.js +1 -1
  16. package/lib/commands/apps/rename.js +1 -1
  17. package/lib/commands/apps/stacks/set.js +1 -1
  18. package/lib/commands/authorizations/info.js +1 -1
  19. package/lib/commands/authorizations/revoke.js +1 -1
  20. package/lib/commands/authorizations/rotate.js +1 -1
  21. package/lib/commands/authorizations/update.js +1 -1
  22. package/lib/commands/certs/add.js +2 -2
  23. package/lib/commands/certs/generate.js +1 -1
  24. package/lib/commands/certs/update.js +2 -2
  25. package/lib/commands/ci/config/get.js +1 -1
  26. package/lib/commands/ci/info.js +1 -1
  27. package/lib/commands/ci/rerun.js +1 -1
  28. package/lib/commands/clients/create.js +2 -2
  29. package/lib/commands/clients/destroy.js +1 -1
  30. package/lib/commands/clients/info.js +1 -1
  31. package/lib/commands/clients/rotate.js +1 -1
  32. package/lib/commands/clients/update.js +1 -1
  33. package/lib/commands/config/get.js +1 -1
  34. package/lib/commands/domains/add.js +1 -1
  35. package/lib/commands/domains/info.js +1 -1
  36. package/lib/commands/domains/remove.js +1 -1
  37. package/lib/commands/domains/update.js +1 -1
  38. package/lib/commands/domains/wait.js +1 -1
  39. package/lib/commands/drains/add.js +1 -1
  40. package/lib/commands/drains/remove.js +1 -1
  41. package/lib/commands/features/disable.js +1 -1
  42. package/lib/commands/features/enable.js +1 -1
  43. package/lib/commands/features/info.js +1 -1
  44. package/lib/commands/git/credentials.js +1 -1
  45. package/lib/commands/keys/add.js +1 -1
  46. package/lib/commands/keys/remove.js +1 -1
  47. package/lib/commands/labs/disable.js +1 -1
  48. package/lib/commands/labs/enable.js +1 -1
  49. package/lib/commands/labs/info.js +1 -1
  50. package/lib/commands/local/index.js +1 -1
  51. package/lib/commands/members/add.js +1 -1
  52. package/lib/commands/pg/backups/cancel.js +1 -1
  53. package/lib/commands/pg/backups/capture.js +2 -1
  54. package/lib/commands/pg/backups/delete.js +1 -1
  55. package/lib/commands/pg/backups/download.js +1 -1
  56. package/lib/commands/pg/backups/info.js +1 -1
  57. package/lib/commands/pg/backups/restore.d.ts +1 -0
  58. package/lib/commands/pg/backups/restore.js +29 -2
  59. package/lib/commands/pg/backups/schedule.js +2 -1
  60. package/lib/commands/pg/backups/unschedule.js +2 -1
  61. package/lib/commands/pg/backups/url.js +1 -1
  62. package/lib/commands/pg/bloat.js +2 -1
  63. package/lib/commands/pg/blocking.js +2 -1
  64. package/lib/commands/pg/connection-pooling/attach.js +2 -1
  65. package/lib/commands/pg/copy.js +2 -2
  66. package/lib/commands/pg/credentials/create.js +2 -1
  67. package/lib/commands/pg/credentials/destroy.js +2 -1
  68. package/lib/commands/pg/credentials/repair-default.js +2 -1
  69. package/lib/commands/pg/credentials/rotate.js +2 -1
  70. package/lib/commands/pg/credentials/url.js +2 -1
  71. package/lib/commands/pg/credentials.js +2 -1
  72. package/lib/commands/pg/diagnose.js +1 -1
  73. package/lib/commands/pg/info.js +2 -1
  74. package/lib/commands/pg/kill.js +3 -2
  75. package/lib/commands/pg/killall.js +2 -1
  76. package/lib/commands/pg/links/create.js +3 -2
  77. package/lib/commands/pg/links/destroy.js +3 -2
  78. package/lib/commands/pg/links/index.js +2 -1
  79. package/lib/commands/pg/locks.js +2 -1
  80. package/lib/commands/pg/maintenance/index.js +2 -1
  81. package/lib/commands/pg/maintenance/run.js +2 -1
  82. package/lib/commands/pg/maintenance/window.js +3 -2
  83. package/lib/commands/pg/outliers.js +2 -1
  84. package/lib/commands/pg/promote.js +2 -1
  85. package/lib/commands/pg/ps.js +2 -1
  86. package/lib/commands/pg/psql.js +2 -1
  87. package/lib/commands/pg/pull.js +3 -2
  88. package/lib/commands/pg/push.js +4 -3
  89. package/lib/commands/pg/reset.js +2 -1
  90. package/lib/commands/pg/settings/auto-explain/log-analyze.js +3 -2
  91. package/lib/commands/pg/settings/auto-explain/log-buffers.js +3 -2
  92. package/lib/commands/pg/settings/auto-explain/log-format.js +3 -2
  93. package/lib/commands/pg/settings/auto-explain/log-min-duration.js +3 -2
  94. package/lib/commands/pg/settings/auto-explain/log-nested-statements.js +3 -2
  95. package/lib/commands/pg/settings/auto-explain/log-triggers.js +3 -2
  96. package/lib/commands/pg/settings/auto-explain/log-verbose.js +3 -2
  97. package/lib/commands/pg/settings/auto-explain.js +3 -2
  98. package/lib/commands/pg/settings/explain-data-connector-details.js +3 -2
  99. package/lib/commands/pg/settings/index.js +2 -1
  100. package/lib/commands/pg/settings/log-connections.js +3 -2
  101. package/lib/commands/pg/settings/log-lock-waits.js +3 -2
  102. package/lib/commands/pg/settings/log-min-duration-statement.js +3 -2
  103. package/lib/commands/pg/settings/log-min-error-statement.js +2 -1
  104. package/lib/commands/pg/settings/log-statement.js +3 -2
  105. package/lib/commands/pg/settings/track-functions.js +3 -2
  106. package/lib/commands/pg/unfollow.js +2 -1
  107. package/lib/commands/pg/upgrade.js +2 -1
  108. package/lib/commands/pg/vacuum-stats.js +2 -1
  109. package/lib/commands/pg/wait.js +2 -1
  110. package/lib/commands/ps/restart.js +1 -1
  111. package/lib/commands/ps/stop.js +1 -1
  112. package/lib/commands/redis/cli.js +1 -1
  113. package/lib/commands/redis/credentials.js +1 -1
  114. package/lib/commands/redis/info.js +1 -1
  115. package/lib/commands/redis/keyspace-notifications.js +1 -1
  116. package/lib/commands/redis/maintenance.js +1 -1
  117. package/lib/commands/redis/maxmemory.js +1 -1
  118. package/lib/commands/redis/promote.js +1 -1
  119. package/lib/commands/redis/stats-reset.js +1 -1
  120. package/lib/commands/redis/timeout.js +1 -1
  121. package/lib/commands/redis/upgrade.js +1 -1
  122. package/lib/commands/redis/wait.js +1 -1
  123. package/lib/commands/releases/info.js +1 -1
  124. package/lib/commands/releases/output.js +1 -1
  125. package/lib/commands/releases/rollback.js +1 -1
  126. package/lib/commands/sessions/destroy.js +1 -1
  127. package/lib/commands/spaces/drains/set.js +1 -1
  128. package/lib/commands/spaces/trusted-ips/add.js +1 -1
  129. package/lib/commands/spaces/trusted-ips/remove.js +1 -1
  130. package/lib/commands/webhooks/deliveries/info.js +1 -1
  131. package/lib/commands/webhooks/events/info.js +1 -1
  132. package/lib/commands/webhooks/info.js +1 -1
  133. package/lib/commands/webhooks/update.js +1 -1
  134. package/lib/nls.d.ts +8 -0
  135. package/lib/nls.js +14 -0
  136. package/lib/package.nls.json +6 -0
  137. package/oclif.manifest.json +836 -670
  138. package/package.json +2 -2
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const fetcher_1 = require("../../lib/pg/fetcher");
7
7
  const psql_1 = require("../../lib/pg/psql");
8
+ const nls_1 = require("../../nls");
8
9
  class Blocking extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Blocking);
@@ -38,5 +39,5 @@ Blocking.flags = {
38
39
  remote: command_1.flags.remote(),
39
40
  };
40
41
  Blocking.args = {
41
- database: core_1.Args.string(),
42
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
42
43
  };
@@ -7,6 +7,7 @@ const host_1 = require("../../../lib/pg/host");
7
7
  const tsheredoc_1 = require("tsheredoc");
8
8
  const util_1 = require("../../../lib/pg/util");
9
9
  const fetcher_1 = require("../../../lib/pg/fetcher");
10
+ const nls_1 = require("../../../nls");
10
11
  class Attach extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(Attach);
@@ -37,5 +38,5 @@ Attach.flags = {
37
38
  remote: command_1.flags.remote(),
38
39
  };
39
40
  Attach.args = {
40
- database: core_1.Args.string(),
41
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
41
42
  };
@@ -81,6 +81,6 @@ Copy.flags = {
81
81
  remote: command_1.flags.remote(),
82
82
  };
83
83
  Copy.args = {
84
- source: core_1.Args.string({ required: true }),
85
- target: core_1.Args.string({ required: true }),
84
+ source: core_1.Args.string({ required: true, description: 'config var exposed to the owning app containing the source database URL' }),
85
+ target: core_1.Args.string({ required: true, description: 'config var exposed to the owning app containing the target database URL' }),
86
86
  };
@@ -7,6 +7,7 @@ const tsheredoc_1 = require("tsheredoc");
7
7
  const fetcher_1 = require("../../../lib/pg/fetcher");
8
8
  const host_1 = require("../../../lib/pg/host");
9
9
  const util_1 = require("../../../lib/pg/util");
10
+ const nls_1 = require("../../../nls");
10
11
  class Create extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(Create);
@@ -36,5 +37,5 @@ Create.flags = {
36
37
  remote: command_1.flags.remote(),
37
38
  };
38
39
  Create.args = {
39
- database: core_1.Args.string(),
40
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
40
41
  };
@@ -7,6 +7,7 @@ const util_1 = require("../../../lib/pg/util");
7
7
  const fetcher_1 = require("../../../lib/pg/fetcher");
8
8
  const host_1 = require("../../../lib/pg/host");
9
9
  const confirmCommand_1 = require("../../../lib/confirmCommand");
10
+ const nls_1 = require("../../../nls");
10
11
  class Destroy extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(Destroy);
@@ -44,5 +45,5 @@ Destroy.flags = {
44
45
  remote: command_1.flags.remote(),
45
46
  };
46
47
  Destroy.args = {
47
- database: core_1.Args.string(),
48
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
48
49
  };
@@ -7,6 +7,7 @@ const util_1 = require("../../../lib/pg/util");
7
7
  const confirmCommand_1 = require("../../../lib/confirmCommand");
8
8
  const tsheredoc_1 = require("tsheredoc");
9
9
  const host_1 = require("../../../lib/pg/host");
10
+ const nls_1 = require("../../../nls");
10
11
  class RepairDefault extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(RepairDefault);
@@ -35,5 +36,5 @@ RepairDefault.flags = {
35
36
  remote: command_1.flags.remote(),
36
37
  };
37
38
  RepairDefault.args = {
38
- database: core_1.Args.string(),
39
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
39
40
  };
@@ -7,6 +7,7 @@ const confirmCommand_1 = require("../../../lib/confirmCommand");
7
7
  const fetcher_1 = require("../../../lib/pg/fetcher");
8
8
  const host_1 = require("../../../lib/pg/host");
9
9
  const util_1 = require("../../../lib/pg/util");
10
+ const nls_1 = require("../../../nls");
10
11
  class Rotate extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(Rotate);
@@ -79,5 +80,5 @@ Rotate.flags = {
79
80
  remote: command_1.flags.remote(),
80
81
  };
81
82
  Rotate.args = {
82
- database: core_1.Args.string(),
83
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
83
84
  };
@@ -8,6 +8,7 @@ const fetcher_1 = require("../../../lib/pg/fetcher");
8
8
  const host_1 = require("../../../lib/pg/host");
9
9
  const url_1 = require("url");
10
10
  const tsheredoc_1 = require("tsheredoc");
11
+ const nls_1 = require("../../../nls");
11
12
  class Url extends command_1.Command {
12
13
  async run() {
13
14
  const { flags, args } = await this.parse(Url);
@@ -60,5 +61,5 @@ Url.flags = {
60
61
  remote: command_1.flags.remote(),
61
62
  };
62
63
  Url.args = {
63
- database: core_1.Args.string(),
64
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
64
65
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const host_1 = require("../../lib/pg/host");
6
6
  const fetcher_1 = require("../../lib/pg/fetcher");
7
7
  const util_1 = require("../../lib/pg/util");
8
+ const nls_1 = require("../../nls");
8
9
  class Credentials extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Credentials);
@@ -57,5 +58,5 @@ Credentials.flags = {
57
58
  remote: command_1.flags.remote(),
58
59
  };
59
60
  Credentials.args = {
60
- database: core_1.Args.string(),
61
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
61
62
  };
@@ -105,5 +105,5 @@ Diagnose.flags = {
105
105
  remote: command_1.flags.remote(),
106
106
  };
107
107
  Diagnose.args = {
108
- 'DATABASE|REPORT_ID': core_1.Args.string(),
108
+ 'DATABASE|REPORT_ID': core_1.Args.string({ description: 'config var exposed to the owning app containing the database URL or the report ID' }),
109
109
  };
@@ -6,6 +6,7 @@ const core_1 = require("@oclif/core");
6
6
  const host_1 = require("../../lib/pg/host");
7
7
  const fetcher_1 = require("../../lib/pg/fetcher");
8
8
  const util_1 = require("../../lib/pg/util");
9
+ const nls_1 = require("../../nls");
9
10
  function displayDB(db, app) {
10
11
  var _a, _b, _c, _d, _e;
11
12
  if (db.addon.attachment_names) {
@@ -87,6 +88,6 @@ Info.flags = {
87
88
  remote: command_1.flags.remote(),
88
89
  };
89
90
  Info.args = {
90
- database: core_1.Args.string(),
91
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:all-dbs:suffix')}` }),
91
92
  };
92
93
  Info.aliases = ['pg'];
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const fetcher_1 = require("../../lib/pg/fetcher");
6
6
  const psql_1 = require("../../lib/pg/psql");
7
7
  const tsheredoc_1 = require("tsheredoc");
8
+ const nls_1 = require("../../nls");
8
9
  class Kill extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Kill);
@@ -27,6 +28,6 @@ Kill.flags = {
27
28
  remote: command_1.flags.remote(),
28
29
  };
29
30
  Kill.args = {
30
- pid: core_1.Args.string({ required: true }),
31
- database: core_1.Args.string(),
31
+ pid: core_1.Args.string({ required: true, description: 'ID of the process' }),
32
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
32
33
  };
@@ -4,6 +4,7 @@ const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
5
  const fetcher_1 = require("../../lib/pg/fetcher");
6
6
  const host_1 = require("../../lib/pg/host");
7
+ const nls_1 = require("../../nls");
7
8
  class Killall extends command_1.Command {
8
9
  async run() {
9
10
  const { flags, args } = await this.parse(Killall);
@@ -22,5 +23,5 @@ Killall.flags = {
22
23
  remote: command_1.flags.remote(),
23
24
  };
24
25
  Killall.args = {
25
- database: core_1.Args.string(),
26
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
26
27
  };
@@ -8,6 +8,7 @@ const resolve_1 = require("../../../lib/addons/resolve");
8
8
  const fetcher_1 = require("../../../lib/pg/fetcher");
9
9
  const host_1 = require("../../../lib/pg/host");
10
10
  const util_1 = require("../../../lib/pg/util");
11
+ const nls_1 = require("../../../nls");
11
12
  class Create extends command_1.Command {
12
13
  async run() {
13
14
  const { flags, args } = await this.parse(Create);
@@ -53,6 +54,6 @@ Create.flags = {
53
54
  remote: command_1.flags.remote(),
54
55
  };
55
56
  Create.args = {
56
- remote: core_1.Args.string({ required: true }),
57
- database: core_1.Args.string({ required: true }),
57
+ remote: core_1.Args.string({ required: true, description: (0, nls_1.nls)('pg:database:arg:description') }),
58
+ database: core_1.Args.string({ required: true, description: (0, nls_1.nls)('pg:database:arg:description') }),
58
59
  };
@@ -8,6 +8,7 @@ const util_1 = require("../../../lib/pg/util");
8
8
  const confirmCommand_1 = require("../../../lib/confirmCommand");
9
9
  const tsheredoc_1 = require("tsheredoc");
10
10
  const host_1 = require("../../../lib/pg/host");
11
+ const nls_1 = require("../../../nls");
11
12
  class Destroy extends command_1.Command {
12
13
  async run() {
13
14
  const { flags, args } = await this.parse(Destroy);
@@ -37,6 +38,6 @@ Destroy.flags = {
37
38
  remote: command_1.flags.remote(),
38
39
  };
39
40
  Destroy.args = {
40
- database: core_1.Args.string({ required: true }),
41
- link: core_1.Args.string({ required: true }),
41
+ database: core_1.Args.string({ required: true, description: (0, nls_1.nls)('pg:database:arg:description') }),
42
+ link: core_1.Args.string({ required: true, description: 'name of the linked data store' }),
42
43
  };
@@ -5,6 +5,7 @@ const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
6
  const fetcher_1 = require("../../../lib/pg/fetcher");
7
7
  const host_1 = require("../../../lib/pg/host");
8
+ const nls_1 = require("../../../nls");
8
9
  class Index extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Index);
@@ -55,5 +56,5 @@ Index.flags = {
55
56
  remote: command_1.flags.remote(),
56
57
  };
57
58
  Index.args = {
58
- database: core_1.Args.string(),
59
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
59
60
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const fetcher_1 = require("../../lib/pg/fetcher");
6
6
  const psql_1 = require("../../lib/pg/psql");
7
7
  const tsheredoc_1 = require("tsheredoc");
8
+ const nls_1 = require("../../nls");
8
9
  class Locks extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Locks);
@@ -49,5 +50,5 @@ Locks.flags = {
49
50
  remote: command_1.flags.remote(),
50
51
  };
51
52
  Locks.args = {
52
- database: core_1.Args.string(),
53
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
53
54
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const fetcher_1 = require("../../../lib/pg/fetcher");
6
6
  const util_1 = require("../../../lib/pg/util");
7
7
  const host_1 = require("../../../lib/pg/host");
8
+ const nls_1 = require("../../../nls");
8
9
  class Index extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Index);
@@ -25,5 +26,5 @@ Index.flags = {
25
26
  remote: command_1.flags.remote(),
26
27
  };
27
28
  Index.args = {
28
- database: core_1.Args.string(),
29
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
29
30
  };
@@ -6,6 +6,7 @@ const core_1 = require("@oclif/core");
6
6
  const fetcher_1 = require("../../../lib/pg/fetcher");
7
7
  const util_1 = require("../../../lib/pg/util");
8
8
  const host_1 = require("../../../lib/pg/host");
9
+ const nls_1 = require("../../../nls");
9
10
  class Run extends command_1.Command {
10
11
  async run() {
11
12
  const { flags, args } = await this.parse(Run);
@@ -33,5 +34,5 @@ Run.flags = {
33
34
  remote: command_1.flags.remote(),
34
35
  };
35
36
  Run.args = {
36
- database: core_1.Args.string(),
37
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
37
38
  };
@@ -7,6 +7,7 @@ const host_1 = require("../../../lib/pg/host");
7
7
  const util_1 = require("../../../lib/pg/util");
8
8
  const fetcher_1 = require("../../../lib/pg/fetcher");
9
9
  const tsheredoc_1 = require("tsheredoc");
10
+ const nls_1 = require("../../../nls");
10
11
  class Window extends command_1.Command {
11
12
  async run() {
12
13
  const { args, flags } = await this.parse(Window);
@@ -36,6 +37,6 @@ Window.flags = {
36
37
  remote: command_1.flags.remote(),
37
38
  };
38
39
  Window.args = {
39
- window: core_1.Args.string({ required: true }),
40
- database: core_1.Args.string(),
40
+ window: core_1.Args.string({ required: true, description: 'timestamp of the maintenance window' }),
41
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
41
42
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const fetcher_1 = require("../../lib/pg/fetcher");
6
6
  const psql_1 = require("../../lib/pg/psql");
7
7
  const tsheredoc_1 = require("tsheredoc");
8
+ const nls_1 = require("../../nls");
8
9
  class Outliers extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Outliers);
@@ -93,5 +94,5 @@ Outliers.flags = {
93
94
  remote: command_1.flags.remote(),
94
95
  };
95
96
  Outliers.args = {
96
- database: core_1.Args.string(),
97
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
97
98
  };
@@ -7,6 +7,7 @@ const core_1 = require("@oclif/core");
7
7
  const tsheredoc_1 = require("tsheredoc");
8
8
  const fetcher_1 = require("../../lib/pg/fetcher");
9
9
  const host_1 = require("../../lib/pg/host");
10
+ const nls_1 = require("../../nls");
10
11
  class Promote extends command_1.Command {
11
12
  async run() {
12
13
  var _a, _b, _c;
@@ -165,5 +166,5 @@ Promote.flags = {
165
166
  remote: command_1.flags.remote(),
166
167
  };
167
168
  Promote.args = {
168
- database: core_1.Args.string({ required: true }),
169
+ database: core_1.Args.string({ required: true, description: (0, nls_1.nls)('pg:database:arg:description') }),
169
170
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const fetcher_1 = require("../../lib/pg/fetcher");
7
7
  const psql_1 = require("../../lib/pg/psql");
8
+ const nls_1 = require("../../nls");
8
9
  class Ps extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Ps);
@@ -48,5 +49,5 @@ Ps.flags = {
48
49
  remote: command_1.flags.remote(),
49
50
  };
50
51
  Ps.args = {
51
- database: core_1.Args.string(),
52
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
52
53
  };
@@ -5,6 +5,7 @@ const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
6
  const fetcher_1 = require("../../lib/pg/fetcher");
7
7
  const psql_1 = require("../../lib/pg/psql");
8
+ const nls_1 = require("../../nls");
8
9
  class Psql extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Psql);
@@ -44,6 +45,6 @@ Psql.flags = {
44
45
  remote: command_1.flags.remote(),
45
46
  };
46
47
  Psql.args = {
47
- database: core_1.Args.string(),
48
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
48
49
  };
49
50
  Psql.aliases = ['psql'];
@@ -8,6 +8,7 @@ const fetcher_1 = require("../../lib/pg/fetcher");
8
8
  const util_1 = require("../../lib/pg/util");
9
9
  const push_pull_1 = require("../../lib/pg/push_pull");
10
10
  const node_child_process_1 = require("node:child_process");
11
+ const nls_1 = require("../../nls");
11
12
  const env = process.env;
12
13
  class Pull extends command_1.Command {
13
14
  async run() {
@@ -82,6 +83,6 @@ Pull.flags = {
82
83
  remote: command_1.flags.remote(),
83
84
  };
84
85
  Pull.args = {
85
- source: core_1.Args.string({ required: true }),
86
- target: core_1.Args.string({ required: true }),
86
+ source: core_1.Args.string({ required: true, description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
87
+ target: core_1.Args.string({ required: true, description: 'PostgreSQL connection string for the target database' }),
87
88
  };
@@ -8,6 +8,7 @@ const fetcher_1 = require("../../lib/pg/fetcher");
8
8
  const util_1 = require("../../lib/pg/util");
9
9
  const push_pull_1 = require("../../lib/pg/push_pull");
10
10
  const node_child_process_1 = require("node:child_process");
11
+ const nls_1 = require("../../nls");
11
12
  const env = process.env;
12
13
  class Push extends command_1.Command {
13
14
  async run() {
@@ -62,7 +63,7 @@ Push.description = (0, tsheredoc_1.default) `
62
63
  Push from SOURCE into TARGET. TARGET must be empty.
63
64
 
64
65
  To empty a Heroku database for push run ${color_1.default.cmd('heroku pg:reset')}
65
-
66
+
66
67
  SOURCE must be either the name of a database existing on your localhost or the
67
68
  fully qualified URL of a remote database.
68
69
  `;
@@ -79,6 +80,6 @@ Push.flags = {
79
80
  remote: command_1.flags.remote(),
80
81
  };
81
82
  Push.args = {
82
- source: core_1.Args.string({ required: true }),
83
- target: core_1.Args.string({ required: true }),
83
+ source: core_1.Args.string({ required: true, description: 'PostgreSQL connection string for the source database' }),
84
+ target: core_1.Args.string({ required: true, description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
84
85
  };
@@ -7,6 +7,7 @@ const confirmCommand_1 = require("../../lib/confirmCommand");
7
7
  const host_1 = require("../../lib/pg/host");
8
8
  const fetcher_1 = require("../../lib/pg/fetcher");
9
9
  const tsheredoc_1 = require("tsheredoc");
10
+ const nls_1 = require("../../nls");
10
11
  class Reset extends command_1.Command {
11
12
  async run() {
12
13
  const { flags, args } = await this.parse(Reset);
@@ -40,5 +41,5 @@ Reset.flags = {
40
41
  remote: command_1.flags.remote(),
41
42
  };
42
43
  Reset.args = {
43
- database: core_1.Args.string(),
44
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
44
45
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const tsheredoc_1 = require("tsheredoc");
5
5
  const setter_1 = require("../../../../lib/pg/setter");
6
+ const nls_1 = require("../../../../nls");
6
7
  class LogAnalyze extends setter_1.PGSettingsCommand {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -27,6 +28,6 @@ LogAnalyze.description = (0, tsheredoc_1.default)(`
27
28
  WARNING: EXPLAIN ANALYZE will be run on ALL queries, not just logged queries. This can cause significant performance impacts to your database and should be used with caution.
28
29
  `);
29
30
  LogAnalyze.args = {
30
- database: core_1.Args.string(),
31
- value: core_1.Args.string(),
31
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
32
+ value: core_1.Args.string({ description: 'boolean indicating if execution plans get logged' }),
32
33
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const tsheredoc_1 = require("tsheredoc");
5
5
  const setter_1 = require("../../../../lib/pg/setter");
6
+ const nls_1 = require("../../../../nls");
6
7
  class LogBuffersWaits extends setter_1.PGSettingsCommand {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -25,6 +26,6 @@ LogBuffersWaits.description = (0, tsheredoc_1.default)(`
25
26
  This is equivalent to calling EXPLAIN BUFFERS and can only be used in conjunction with pg:settings:auto-explain:log-analyze turned on.
26
27
  `);
27
28
  LogBuffersWaits.args = {
28
- database: core_1.Args.string(),
29
- value: core_1.Args.string(),
29
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
30
+ value: core_1.Args.string({ description: 'boolean indicating if the database has buffer statistics enabled' }),
30
31
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const setter_1 = require("../../../../lib/pg/setter");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
+ const nls_1 = require("../../../../nls");
6
7
  class LogFormat extends setter_1.PGSettingsCommand {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -21,6 +22,6 @@ LogFormat.description = (0, tsheredoc_1.default)(`
21
22
  The allowed values are text, xml, json, and yaml. The default is text.
22
23
  `);
23
24
  LogFormat.args = {
24
- database: core_1.Args.string(),
25
- value: core_1.Args.string({ options: ['text', 'json', 'yaml', 'xml'] }),
25
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
26
+ value: core_1.Args.string({ options: ['text', 'json', 'yaml', 'xml'], description: 'format of the log output\n<options: text|json|yaml|xml>' }),
26
27
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const tsheredoc_1 = require("tsheredoc");
5
5
  const setter_1 = require("../../../../lib/pg/setter");
6
+ const nls_1 = require("../../../../nls");
6
7
  class LogMinDuration extends setter_1.PGSettingsCommand {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -28,6 +29,6 @@ LogMinDuration.description = (0, tsheredoc_1.default)(`
28
29
  Setting this value to 0 will log all queries. Setting this value to -1 will disable logging entirely.
29
30
  `);
30
31
  LogMinDuration.args = {
31
- database: core_1.Args.string(),
32
- value: core_1.Args.string(),
32
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
33
+ value: core_1.Args.string({ description: 'minimum duration in milliseconds for queries before logging execution plans. A value of -1 disables it. A value of 0 logs all query execution plans.' }),
33
34
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const setter_1 = require("../../../../lib/pg/setter");
5
+ const nls_1 = require("../../../../nls");
5
6
  class LogNestedStatements extends setter_1.PGSettingsCommand {
6
7
  constructor() {
7
8
  super(...arguments);
@@ -20,6 +21,6 @@ class LogNestedStatements extends setter_1.PGSettingsCommand {
20
21
  exports.default = LogNestedStatements;
21
22
  LogNestedStatements.description = "Nested statements are included in the execution plan's log.";
22
23
  LogNestedStatements.args = {
23
- database: core_1.Args.string(),
24
- value: core_1.Args.string(),
24
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
25
+ value: core_1.Args.string({ description: 'boolean indicating if execution plan logs include nested statements' }),
25
26
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
4
  const tsheredoc_1 = require("tsheredoc");
5
5
  const setter_1 = require("../../../../lib/pg/setter");
6
+ const nls_1 = require("../../../../nls");
6
7
  class LogTriggers extends setter_1.PGSettingsCommand {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -25,6 +26,6 @@ LogTriggers.description = (0, tsheredoc_1.default)(`
25
26
  This parameter can only be used in conjunction with pg:settings:auto-explain:log-analyze turned on.
26
27
  `);
27
28
  LogTriggers.args = {
28
- database: core_1.Args.string(),
29
- value: core_1.Args.string(),
29
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
30
+ value: core_1.Args.string({ description: 'boolean indicating if the database has trigger execution statistics enabled' }),
30
31
  };
@@ -4,6 +4,7 @@ const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const setter_1 = require("../../../../lib/pg/setter");
7
+ const nls_1 = require("../../../../nls");
7
8
  class AutoExplainLogVerbose extends setter_1.PGSettingsCommand {
8
9
  constructor() {
9
10
  super(...arguments);
@@ -28,6 +29,6 @@ AutoExplainLogVerbose.flags = {
28
29
  remote: command_1.flags.remote(),
29
30
  };
30
31
  AutoExplainLogVerbose.args = {
31
- database: core_1.Args.string(),
32
- value: core_1.Args.string(),
32
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
33
+ value: core_1.Args.string({ description: 'boolean indicating if the database has verbose execution plan logging enabled' }),
33
34
  };
@@ -4,6 +4,7 @@ const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const setter_1 = require("../../../lib/pg/setter");
7
+ const nls_1 = require("../../../nls");
7
8
  // ref: https://www.postgresql.org/docs/current/auto-explain.html
8
9
  class AutoExplain extends setter_1.PGSettingsCommand {
9
10
  constructor() {
@@ -32,7 +33,7 @@ AutoExplain.flags = {
32
33
  remote: command_1.flags.remote(),
33
34
  };
34
35
  AutoExplain.args = {
35
- database: core_1.Args.string(),
36
- value: core_1.Args.string(),
36
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
37
+ value: core_1.Args.string({ description: 'boolean indicating if execution plans of queries will be logged for future connections' }),
37
38
  };
38
39
  AutoExplain.strict = false;
@@ -4,6 +4,7 @@ const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const setter_1 = require("../../../lib/pg/setter");
7
+ const nls_1 = require("../../../nls");
7
8
  class ExplainDataConnectorDetails extends setter_1.PGSettingsCommand {
8
9
  constructor() {
9
10
  super(...arguments);
@@ -28,6 +29,6 @@ ExplainDataConnectorDetails.flags = {
28
29
  remote: command_1.flags.remote(),
29
30
  };
30
31
  ExplainDataConnectorDetails.args = {
31
- database: core_1.Args.string(),
32
- value: core_1.Args.string(),
32
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
33
+ value: core_1.Args.string({ description: 'boolean indicating if data replication slot details get logged' }),
33
34
  };
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const resolve_1 = require("../../../lib/addons/resolve");
6
6
  const util_1 = require("../../../lib/pg/util");
7
7
  const host_1 = require("../../../lib/pg/host");
8
+ const nls_1 = require("../../../nls");
8
9
  class Index extends command_1.Command {
9
10
  async run() {
10
11
  const { flags, args } = await this.parse(Index);
@@ -30,5 +31,5 @@ Index.flags = {
30
31
  remote: command_1.flags.remote(),
31
32
  };
32
33
  Index.args = {
33
- database: core_1.Args.string(),
34
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
34
35
  };
@@ -4,6 +4,7 @@ const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
5
  const tsheredoc_1 = require("tsheredoc");
6
6
  const setter_1 = require("../../../lib/pg/setter");
7
+ const nls_1 = require("../../../nls");
7
8
  class LogConnections extends setter_1.PGSettingsCommand {
8
9
  constructor() {
9
10
  super(...arguments);
@@ -29,6 +30,6 @@ LogConnections.flags = {
29
30
  remote: command_1.flags.remote(),
30
31
  };
31
32
  LogConnections.args = {
32
- database: core_1.Args.string(),
33
- value: core_1.Args.string(),
33
+ database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
34
+ value: core_1.Args.string({ description: 'boolean indicating if database login attempts get logged' }),
34
35
  };