@heroku-cli/plugin-data 1.1.0 → 1.2.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.
- package/README.md +76 -15
- package/lib/commands/data/enhanced-certificates/enable.js +1 -1
- package/lib/commands/data/labs/disable.d.ts +14 -0
- package/lib/commands/data/labs/disable.js +36 -0
- package/lib/commands/data/labs/enable.d.ts +14 -0
- package/lib/commands/data/labs/enable.js +36 -0
- package/lib/commands/data/labs/list.d.ts +14 -0
- package/lib/commands/data/labs/list.js +47 -0
- package/lib/lib/base.d.ts +3 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/yarn.lock +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
heroku-cli-plugin-data
|
|
1
|
+
heroku-cli-plugin-data
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
|
-
A Heroku CLI Plugin for managing Heroku Data
|
|
4
|
+
A Heroku CLI Plugin for managing Heroku Data Addons and Features
|
|
5
|
+
|
|
6
|
+
- Connectors
|
|
7
|
+
- Enhanced Certificates
|
|
5
8
|
|
|
6
9
|
[](https://oclif.io)
|
|
7
10
|
[](https://npmjs.org/package/@heroku-cli/plugin-data-connectors)
|
|
@@ -12,13 +15,15 @@ A Heroku CLI Plugin for managing Heroku Data Connections
|
|
|
12
15
|
You can read more about Heroku Data Connectors on [Dev
|
|
13
16
|
Center](https://devcenter.heroku.com/articles/heroku-data-connectors).
|
|
14
17
|
|
|
18
|
+
You can read more about Heroku Data Enhanced Certificates on the [Dev Center](https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates).
|
|
19
|
+
|
|
15
20
|
<!-- toc -->
|
|
16
21
|
* [Usage](#usage)
|
|
17
22
|
* [Commands](#commands)
|
|
18
23
|
<!-- tocstop -->
|
|
19
24
|
# Usage
|
|
20
25
|
```sh-session
|
|
21
|
-
$ heroku plugins:install data
|
|
26
|
+
$ heroku plugins:install data
|
|
22
27
|
$ heroku COMMAND
|
|
23
28
|
running command...
|
|
24
29
|
$ heroku (-v|--version|version)
|
|
@@ -42,6 +47,9 @@ USAGE
|
|
|
42
47
|
* [`heroku data:enhanced-certificates:disable [ADDON]`](#heroku-dataenhanced-certificatesdisable-addon)
|
|
43
48
|
* [`heroku data:enhanced-certificates:enable [ADDON]`](#heroku-dataenhanced-certificatesenable-addon)
|
|
44
49
|
* [`heroku data:enhanced-certificates:status [ADDON]`](#heroku-dataenhanced-certificatesstatus-addon)
|
|
50
|
+
* [`heroku data:labs:disable [FEATURE]`](#heroku-datalabsdisable-feature)
|
|
51
|
+
* [`heroku data:labs:enable [FEATURE]`](#heroku-datalabsenable-feature)
|
|
52
|
+
* [`heroku data:labs:list [ADDON]`](#heroku-datalabslist-addon)
|
|
45
53
|
|
|
46
54
|
## `heroku data:connectors`
|
|
47
55
|
|
|
@@ -70,7 +78,7 @@ EXAMPLES
|
|
|
70
78
|
heroku data:connectors --addon=your-postgres-addon --table
|
|
71
79
|
```
|
|
72
80
|
|
|
73
|
-
_See code: [src/commands/data/connectors/index.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
81
|
+
_See code: [src/commands/data/connectors/index.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/index.ts)_
|
|
74
82
|
|
|
75
83
|
## `heroku data:connectors:create`
|
|
76
84
|
|
|
@@ -98,7 +106,7 @@ EXAMPLES
|
|
|
98
106
|
--exclude-column public.users.password
|
|
99
107
|
```
|
|
100
108
|
|
|
101
|
-
_See code: [src/commands/data/connectors/create.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
109
|
+
_See code: [src/commands/data/connectors/create.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/create.ts)_
|
|
102
110
|
|
|
103
111
|
## `heroku data:connectors:destroy [CONNECTOR]`
|
|
104
112
|
|
|
@@ -119,7 +127,7 @@ EXAMPLES
|
|
|
119
127
|
$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234
|
|
120
128
|
```
|
|
121
129
|
|
|
122
|
-
_See code: [src/commands/data/connectors/destroy.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
130
|
+
_See code: [src/commands/data/connectors/destroy.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/destroy.ts)_
|
|
123
131
|
|
|
124
132
|
## `heroku data:connectors:info [CONNECTOR]`
|
|
125
133
|
|
|
@@ -140,7 +148,7 @@ EXAMPLES
|
|
|
140
148
|
$ heroku data:connectors:info gentle-connector-1234 --json
|
|
141
149
|
```
|
|
142
150
|
|
|
143
|
-
_See code: [src/commands/data/connectors/info.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
151
|
+
_See code: [src/commands/data/connectors/info.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/info.ts)_
|
|
144
152
|
|
|
145
153
|
## `heroku data:connectors:pause [CONNECTOR]`
|
|
146
154
|
|
|
@@ -157,7 +165,7 @@ EXAMPLE
|
|
|
157
165
|
$ heroku data:connectors:pause gentle-connector-1234
|
|
158
166
|
```
|
|
159
167
|
|
|
160
|
-
_See code: [src/commands/data/connectors/pause.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
168
|
+
_See code: [src/commands/data/connectors/pause.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/pause.ts)_
|
|
161
169
|
|
|
162
170
|
## `heroku data:connectors:resume [CONNECTOR]`
|
|
163
171
|
|
|
@@ -174,7 +182,7 @@ EXAMPLE
|
|
|
174
182
|
$ heroku data:connectors:resume gentle-connector-1234
|
|
175
183
|
```
|
|
176
184
|
|
|
177
|
-
_See code: [src/commands/data/connectors/resume.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
185
|
+
_See code: [src/commands/data/connectors/resume.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/resume.ts)_
|
|
178
186
|
|
|
179
187
|
## `heroku data:connectors:update [CONNECTOR]`
|
|
180
188
|
|
|
@@ -200,7 +208,7 @@ EXAMPLE
|
|
|
200
208
|
--remove-excluded-column public.parcels.key
|
|
201
209
|
```
|
|
202
210
|
|
|
203
|
-
_See code: [src/commands/data/connectors/update.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
211
|
+
_See code: [src/commands/data/connectors/update.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/update.ts)_
|
|
204
212
|
|
|
205
213
|
## `heroku data:connectors:wait [CONNECTOR]`
|
|
206
214
|
|
|
@@ -217,7 +225,7 @@ EXAMPLE
|
|
|
217
225
|
$ heroku data:connectors:wait gentle-connector-1234
|
|
218
226
|
```
|
|
219
227
|
|
|
220
|
-
_See code: [src/commands/data/connectors/wait.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
228
|
+
_See code: [src/commands/data/connectors/wait.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/connectors/wait.ts)_
|
|
221
229
|
|
|
222
230
|
## `heroku data:enhanced-certificates:disable [ADDON]`
|
|
223
231
|
|
|
@@ -234,7 +242,7 @@ DESCRIPTION
|
|
|
234
242
|
Read more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates
|
|
235
243
|
```
|
|
236
244
|
|
|
237
|
-
_See code: [src/commands/data/enhanced-certificates/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
245
|
+
_See code: [src/commands/data/enhanced-certificates/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/enhanced-certificates/disable.ts)_
|
|
238
246
|
|
|
239
247
|
## `heroku data:enhanced-certificates:enable [ADDON]`
|
|
240
248
|
|
|
@@ -251,10 +259,10 @@ DESCRIPTION
|
|
|
251
259
|
Read more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates
|
|
252
260
|
|
|
253
261
|
EXAMPLE
|
|
254
|
-
$ heroku data:enhanced-certificates:
|
|
262
|
+
$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app
|
|
255
263
|
```
|
|
256
264
|
|
|
257
|
-
_See code: [src/commands/data/enhanced-certificates/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
265
|
+
_See code: [src/commands/data/enhanced-certificates/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/enhanced-certificates/enable.ts)_
|
|
258
266
|
|
|
259
267
|
## `heroku data:enhanced-certificates:status [ADDON]`
|
|
260
268
|
|
|
@@ -272,5 +280,58 @@ DESCRIPTION
|
|
|
272
280
|
Read more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates
|
|
273
281
|
```
|
|
274
282
|
|
|
275
|
-
_See code: [src/commands/data/enhanced-certificates/status.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.
|
|
283
|
+
_See code: [src/commands/data/enhanced-certificates/status.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/enhanced-certificates/status.ts)_
|
|
284
|
+
|
|
285
|
+
## `heroku data:labs:disable [FEATURE]`
|
|
286
|
+
|
|
287
|
+
Disable experimental features on an addon
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
USAGE
|
|
291
|
+
$ heroku data:labs:disable [FEATURE]
|
|
292
|
+
|
|
293
|
+
OPTIONS
|
|
294
|
+
-a, --app=app app to run command against
|
|
295
|
+
--addon=addon (required) The addon you want to disable features on
|
|
296
|
+
|
|
297
|
+
EXAMPLE
|
|
298
|
+
$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
_See code: [src/commands/data/labs/disable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/labs/disable.ts)_
|
|
302
|
+
|
|
303
|
+
## `heroku data:labs:enable [FEATURE]`
|
|
304
|
+
|
|
305
|
+
Enable experimental features on an addon
|
|
306
|
+
|
|
307
|
+
```
|
|
308
|
+
USAGE
|
|
309
|
+
$ heroku data:labs:enable [FEATURE]
|
|
310
|
+
|
|
311
|
+
OPTIONS
|
|
312
|
+
-a, --app=app app to run command against
|
|
313
|
+
--addon=addon (required) The addon you want to enable features on
|
|
314
|
+
|
|
315
|
+
EXAMPLE
|
|
316
|
+
$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
_See code: [src/commands/data/labs/enable.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/labs/enable.ts)_
|
|
320
|
+
|
|
321
|
+
## `heroku data:labs:list [ADDON]`
|
|
322
|
+
|
|
323
|
+
List available experimental features on an addon and their statuses
|
|
324
|
+
|
|
325
|
+
```
|
|
326
|
+
USAGE
|
|
327
|
+
$ heroku data:labs:list [ADDON]
|
|
328
|
+
|
|
329
|
+
OPTIONS
|
|
330
|
+
-a, --app=app app to run command against
|
|
331
|
+
|
|
332
|
+
EXAMPLE
|
|
333
|
+
$ heroku data:labs:list happy-postgres-1234
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
_See code: [src/commands/data/labs/list.ts](https://github.com/heroku/heroku-cli-plugin-data/blob/v1.2.0/src/commands/data/labs/list.ts)_
|
|
276
337
|
<!-- commandsstop -->
|
|
@@ -21,7 +21,7 @@ class DataEnhancedCertificatesEnable extends base_1.default {
|
|
|
21
21
|
exports.default = DataEnhancedCertificatesEnable;
|
|
22
22
|
DataEnhancedCertificatesEnable.description = 'Enable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates';
|
|
23
23
|
DataEnhancedCertificatesEnable.examples = [
|
|
24
|
-
'$ heroku data:enhanced-certificates:
|
|
24
|
+
'$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app',
|
|
25
25
|
];
|
|
26
26
|
DataEnhancedCertificatesEnable.flags = {
|
|
27
27
|
app: command_1.flags.app(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { flags } from '@heroku-cli/command';
|
|
2
|
+
import BaseCommand from '../../../lib/base';
|
|
3
|
+
export default class LabsDisable extends BaseCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static args: {
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
static flags: {
|
|
10
|
+
app: flags.IOptionFlag<string | undefined>;
|
|
11
|
+
addon: flags.IOptionFlag<string>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@heroku-cli/command");
|
|
4
|
+
const color_1 = require("@heroku-cli/color");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fetcher_1 = require("../../../fetcher");
|
|
7
|
+
const base_1 = require("../../../lib/base");
|
|
8
|
+
class LabsDisable extends base_1.default {
|
|
9
|
+
async run() {
|
|
10
|
+
const { args, flags } = this.parse(LabsDisable);
|
|
11
|
+
const addon = await fetcher_1.fetchAddon(this.heroku, flags.addon, flags.app);
|
|
12
|
+
cli_ux_1.cli.action.start(`Disabling ${args.feature} on ${color_1.default.cyan(addon.name)}...`);
|
|
13
|
+
try {
|
|
14
|
+
await this.shogun.put(`/client/v11/labs/${addon.id}/disable`, Object.assign(Object.assign({}, this.shogun.defaults), { raw: true, body: {
|
|
15
|
+
feature: args.feature,
|
|
16
|
+
} }));
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
cli_ux_1.cli.error(error);
|
|
20
|
+
}
|
|
21
|
+
cli_ux_1.cli.action.stop();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = LabsDisable;
|
|
25
|
+
LabsDisable.description = 'Disable experimental features on an addon';
|
|
26
|
+
LabsDisable.examples = [
|
|
27
|
+
'$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app',
|
|
28
|
+
];
|
|
29
|
+
LabsDisable.args = [{ name: 'feature' }];
|
|
30
|
+
LabsDisable.flags = {
|
|
31
|
+
app: command_1.flags.app(),
|
|
32
|
+
addon: command_1.flags.string({
|
|
33
|
+
description: 'The addon you want to disable features on',
|
|
34
|
+
required: true,
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { flags } from '@heroku-cli/command';
|
|
2
|
+
import BaseCommand from '../../../lib/base';
|
|
3
|
+
export default class LabsEnable extends BaseCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static args: {
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
static flags: {
|
|
10
|
+
app: flags.IOptionFlag<string | undefined>;
|
|
11
|
+
addon: flags.IOptionFlag<string>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@heroku-cli/command");
|
|
4
|
+
const color_1 = require("@heroku-cli/color");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fetcher_1 = require("../../../fetcher");
|
|
7
|
+
const base_1 = require("../../../lib/base");
|
|
8
|
+
class LabsEnable extends base_1.default {
|
|
9
|
+
async run() {
|
|
10
|
+
const { args, flags } = this.parse(LabsEnable);
|
|
11
|
+
const addon = await fetcher_1.fetchAddon(this.heroku, flags.addon, flags.app);
|
|
12
|
+
cli_ux_1.cli.action.start(`Enabling ${args.feature} on ${color_1.default.cyan(addon.name)}...`);
|
|
13
|
+
try {
|
|
14
|
+
await this.shogun.put(`/client/v11/labs/${addon.id}/enable`, Object.assign(Object.assign({}, this.shogun.defaults), { raw: true, body: {
|
|
15
|
+
feature: args.feature,
|
|
16
|
+
} }));
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
cli_ux_1.cli.error(error);
|
|
20
|
+
}
|
|
21
|
+
cli_ux_1.cli.action.stop();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = LabsEnable;
|
|
25
|
+
LabsEnable.description = 'Enable experimental features on an addon';
|
|
26
|
+
LabsEnable.examples = [
|
|
27
|
+
'$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app',
|
|
28
|
+
];
|
|
29
|
+
LabsEnable.args = [{ name: 'feature' }];
|
|
30
|
+
LabsEnable.flags = {
|
|
31
|
+
app: command_1.flags.app(),
|
|
32
|
+
addon: command_1.flags.string({
|
|
33
|
+
description: 'The addon you want to enable features on',
|
|
34
|
+
required: true,
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { flags } from '@heroku-cli/command';
|
|
2
|
+
import BaseCommand from '../../../lib/base';
|
|
3
|
+
export default class LabsList extends BaseCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static args: {
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
static flags: {
|
|
10
|
+
app: flags.IOptionFlag<string | undefined>;
|
|
11
|
+
};
|
|
12
|
+
printFeatures(features: Array<any>, addonName: string): void;
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@heroku-cli/command");
|
|
4
|
+
const color_1 = require("@heroku-cli/color");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fetcher_1 = require("../../../fetcher");
|
|
7
|
+
const base_1 = require("../../../lib/base");
|
|
8
|
+
class LabsList extends base_1.default {
|
|
9
|
+
printFeatures(features, addonName) {
|
|
10
|
+
features.sort((a, b) => a.name < b.name ? -1 : 1);
|
|
11
|
+
const longest = Math.max.apply(null, features.map(f => f.name.length));
|
|
12
|
+
cli_ux_1.cli.styledHeader(`Experimental Features Available for ${color_1.default.cyan(addonName)}:`);
|
|
13
|
+
for (const f of features) {
|
|
14
|
+
const pref = f.status.enabled ? '[+]' : f.status.message ? '[-]' : '[ ]';
|
|
15
|
+
let line = `${pref} ${f.name.padEnd(longest)}`;
|
|
16
|
+
if (f.status.enabled)
|
|
17
|
+
line = color_1.default.green(line);
|
|
18
|
+
if (f.status.message)
|
|
19
|
+
line = color_1.default.yellow(line);
|
|
20
|
+
let statusMessage = f.status.message ? `(STATUS: ${f.status.message})` : '';
|
|
21
|
+
statusMessage = color_1.default.yellow(statusMessage);
|
|
22
|
+
line = `${line} ${statusMessage} ${f.description}`;
|
|
23
|
+
cli_ux_1.cli.log(line);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
async run() {
|
|
27
|
+
const { args, flags } = this.parse(LabsList);
|
|
28
|
+
const addon = await fetcher_1.fetchAddon(this.heroku, args.addon, flags.app);
|
|
29
|
+
try {
|
|
30
|
+
const { body: res } = await this.shogun.get(`/client/v11/labs/${addon.id}/list`, this.shogun.defaults);
|
|
31
|
+
this.printFeatures(res.message, addon.name);
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
cli_ux_1.cli.error(error);
|
|
35
|
+
}
|
|
36
|
+
cli_ux_1.cli.action.stop();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = LabsList;
|
|
40
|
+
LabsList.description = 'List available experimental features on an addon and their statuses';
|
|
41
|
+
LabsList.examples = [
|
|
42
|
+
'$ heroku data:labs:list happy-postgres-1234',
|
|
43
|
+
];
|
|
44
|
+
LabsList.args = [{ name: 'addon' }];
|
|
45
|
+
LabsList.flags = {
|
|
46
|
+
app: command_1.flags.app(),
|
|
47
|
+
};
|
package/lib/lib/base.d.ts
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.2.0","commands":{"data:connectors:create":{"id":"data:connectors:create","description":"create a new Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.posts --table public.comments","$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.users --exclude-column public.users.password"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"source":{"name":"source","type":"option","description":"The name of the database add-on whose change data you want to store","required":true},"store":{"name":"store","type":"option","description":"The name of the database add-on that will store the change data","required":true},"name":{"name":"name","type":"option","description":"Name of the connector","required":false},"table":{"name":"table","type":"option","char":"t","description":"Tables to include","required":true},"exclude-column":{"name":"exclude-column","type":"option","description":"Columns to exclude"},"platform-version":{"name":"platform-version","type":"option","char":"p","hidden":true,"required":false}},"args":[]},"data:connectors:destroy":{"id":"data:connectors:destroy","description":"Destroy a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:destroy gentle-connector-1234","$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234"],"flags":{"confirm":{"name":"confirm","type":"option","description":"confirms destroying the connector if passed in","required":false}},"args":[{"name":"connector"}]},"data:connectors":{"id":"data:connectors","description":"List all Data Connectors for a particular app or addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":["data:connectors:list"],"examples":["heroku data:connectors -a your-app","heroku data:connectors --app=your-app --json","heroku data:connectors --addon=your-postgres-addon --table"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"remote":{"name":"remote","type":"option","char":"r","description":"git remote of app to use"},"addon":{"name":"addon","type":"option","description":"The ID or name for the addon your connector is attached to"},"table":{"name":"table","type":"boolean","description":"Return the results as a table","allowNo":false},"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[]},"data:connectors:info":{"id":"data:connectors:info","description":"Get information about a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:info gentle-connector-1234","$ heroku data:connectors:info gentle-connector-1234 --json"],"flags":{"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[{"name":"connector"}]},"data:connectors:pause":{"id":"data:connectors:pause","description":"Pause change event creation on a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:pause gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:connectors:resume":{"id":"data:connectors:resume","description":"Resume change event creation on a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:resume gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:connectors:update":{"id":"data:connectors:update","description":"Update the settings, tables, and columns to exclude for a Data Connector\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors#update-configuration","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:update gentle-connector-1234 --setting key=value --setting otherKey=otherValue --add-table public.posts --add-table public.people --remove-table public.messages --exclude-column public.posts.key --remove-excluded-column public.parcels.key"],"flags":{"setting":{"name":"setting","type":"option","required":false},"add-table":{"name":"add-table","type":"option","description":"Tables to add","required":false},"remove-table":{"name":"remove-table","type":"option","description":"Tables to remove","required":false},"exclude-column":{"name":"exclude-column","type":"option","description":"Columns to exclude","required":false},"remove-excluded-column":{"name":"remove-excluded-column","type":"option","description":"Columns to no longer exclude","required":false}},"args":[{"name":"connector"}]},"data:connectors:wait":{"id":"data:connectors:wait","description":"Wait for your Data Connector to be provisioned\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-connectors","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:connectors:wait gentle-connector-1234"],"flags":{},"args":[{"name":"connector"}]},"data:enhanced-certificates:disable":{"id":"data:enhanced-certificates:disable","description":"Disable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"}},"args":[{"name":"addon"}]},"data:enhanced-certificates:enable":{"id":"data:enhanced-certificates:enable","description":"Enable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"}},"args":[{"name":"addon"}]},"data:enhanced-certificates:status":{"id":"data:enhanced-certificates:status","description":"Get the status of Enhanced Certificates\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"json":{"name":"json","type":"boolean","description":"Return the results as JSON","allowNo":false}},"args":[{"name":"addon"}]},"data:labs:disable":{"id":"data:labs:disable","description":"Disable experimental features on an addon","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"addon":{"name":"addon","type":"option","description":"The addon you want to disable features on","required":true}},"args":[{"name":"feature"}]},"data:labs:enable":{"id":"data:labs:enable","description":"Enable experimental features on an addon","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"},"addon":{"name":"addon","type":"option","description":"The addon you want to enable features on","required":true}},"args":[{"name":"feature"}]},"data:labs:list":{"id":"data:labs:list","description":"List available experimental features on an addon and their statuses","pluginName":"@heroku-cli/plugin-data","pluginType":"core","aliases":[],"examples":["$ heroku data:labs:list happy-postgres-1234"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against"}},"args":[{"name":"addon"}]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku-cli/plugin-data",
|
|
3
3
|
"description": "A Heroku CLI Plugin for managing Heroku Data",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": "@heroku heroku-front-end@salesforce.com",
|
|
6
6
|
"bugs": "https://github.com/heroku/heroku-cli-plugin-data/issues",
|
|
7
7
|
"dependencies": {
|
package/yarn.lock
CHANGED
|
@@ -2112,9 +2112,9 @@ path-type@^4.0.0:
|
|
|
2112
2112
|
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
|
|
2113
2113
|
|
|
2114
2114
|
pathval@^1.1.0:
|
|
2115
|
-
version "1.1.
|
|
2116
|
-
resolved "https://registry.
|
|
2117
|
-
integrity
|
|
2115
|
+
version "1.1.1"
|
|
2116
|
+
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d"
|
|
2117
|
+
integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==
|
|
2118
2118
|
|
|
2119
2119
|
picomatch@^2.0.5, picomatch@^2.2.1:
|
|
2120
2120
|
version "2.2.2"
|