heroku 8.4.1-beta.3 → 8.4.2-beta.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 CHANGED
@@ -62,7 +62,6 @@ For other issues, [submit a support ticket](https://help.heroku.com/).
62
62
  * [`heroku pipelines`](docs/pipelines.md) - manage pipelines
63
63
  * [`heroku plugins`](docs/plugins.md) - List installed plugins.
64
64
  * [`heroku ps`](docs/ps.md) - Client tools for Heroku Exec
65
- * [`heroku psql`](docs/psql.md) - open a psql shell to the database
66
65
  * [`heroku redis`](docs/redis.md) - manage heroku redis instances
67
66
  * [`heroku regions`](docs/regions.md) - list available regions for deployment
68
67
  * [`heroku releases`](docs/releases.md) - display the releases for an app
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.4.1-beta.3",
2
+ "version": "8.4.2-beta.0",
3
3
  "commands": {
4
4
  "console": {
5
5
  "id": "console",
@@ -2578,192 +2578,6 @@
2578
2578
  },
2579
2579
  "args": {}
2580
2580
  },
2581
- "run:detached": {
2582
- "id": "run:detached",
2583
- "description": "run a detached dyno, where output is sent to your logs",
2584
- "strict": false,
2585
- "pluginName": "heroku",
2586
- "pluginAlias": "heroku",
2587
- "pluginType": "core",
2588
- "aliases": [],
2589
- "examples": [
2590
- "$ heroku run:detached ls"
2591
- ],
2592
- "flags": {
2593
- "app": {
2594
- "name": "app",
2595
- "type": "option",
2596
- "char": "a",
2597
- "description": "app to run command against",
2598
- "required": true,
2599
- "multiple": false
2600
- },
2601
- "remote": {
2602
- "name": "remote",
2603
- "type": "option",
2604
- "char": "r",
2605
- "description": "git remote of app to use",
2606
- "multiple": false
2607
- },
2608
- "env": {
2609
- "name": "env",
2610
- "type": "option",
2611
- "char": "e",
2612
- "description": "environment variables to set (use ';' to split multiple vars)",
2613
- "multiple": false
2614
- },
2615
- "size": {
2616
- "name": "size",
2617
- "type": "option",
2618
- "char": "s",
2619
- "description": "dyno size",
2620
- "multiple": false
2621
- },
2622
- "tail": {
2623
- "name": "tail",
2624
- "type": "boolean",
2625
- "char": "t",
2626
- "description": "continually stream logs",
2627
- "allowNo": false
2628
- },
2629
- "type": {
2630
- "name": "type",
2631
- "type": "option",
2632
- "description": "process type",
2633
- "multiple": false
2634
- }
2635
- },
2636
- "args": {}
2637
- },
2638
- "run": {
2639
- "id": "run",
2640
- "description": "run a one-off process inside a heroku dyno\nShows a notification if the dyno takes more than 20 seconds to start.",
2641
- "strict": false,
2642
- "pluginName": "heroku",
2643
- "pluginAlias": "heroku",
2644
- "pluginType": "core",
2645
- "aliases": [],
2646
- "examples": [
2647
- "$ heroku run bash",
2648
- "$ heroku run -s standard-2x -- myscript.sh -a arg1 -s arg2"
2649
- ],
2650
- "flags": {
2651
- "app": {
2652
- "name": "app",
2653
- "type": "option",
2654
- "char": "a",
2655
- "description": "parent app used by review apps",
2656
- "required": true,
2657
- "multiple": false
2658
- },
2659
- "remote": {
2660
- "name": "remote",
2661
- "type": "option",
2662
- "char": "r",
2663
- "description": "git remote of app to use",
2664
- "multiple": false
2665
- },
2666
- "size": {
2667
- "name": "size",
2668
- "type": "option",
2669
- "char": "s",
2670
- "description": "dyno size",
2671
- "multiple": false
2672
- },
2673
- "type": {
2674
- "name": "type",
2675
- "type": "option",
2676
- "description": "process type",
2677
- "multiple": false
2678
- },
2679
- "exit-code": {
2680
- "name": "exit-code",
2681
- "type": "boolean",
2682
- "char": "x",
2683
- "description": "passthrough the exit code of the remote command",
2684
- "allowNo": false
2685
- },
2686
- "env": {
2687
- "name": "env",
2688
- "type": "option",
2689
- "char": "e",
2690
- "description": "environment variables to set (use ';' to split multiple vars)",
2691
- "multiple": false
2692
- },
2693
- "no-tty": {
2694
- "name": "no-tty",
2695
- "type": "boolean",
2696
- "description": "force the command to not run in a tty",
2697
- "allowNo": false
2698
- },
2699
- "listen": {
2700
- "name": "listen",
2701
- "type": "boolean",
2702
- "description": "listen on a local port",
2703
- "hidden": true,
2704
- "allowNo": false
2705
- },
2706
- "no-notify": {
2707
- "name": "no-notify",
2708
- "type": "boolean",
2709
- "description": "disables notification when dyno is up (alternatively use HEROKU_NOTIFICATIONS=0)",
2710
- "allowNo": false
2711
- }
2712
- },
2713
- "args": {}
2714
- },
2715
- "run:inside": {
2716
- "id": "run:inside",
2717
- "description": "run a one-off process inside an existing heroku dyno",
2718
- "strict": false,
2719
- "pluginName": "heroku",
2720
- "pluginAlias": "heroku",
2721
- "pluginType": "core",
2722
- "hidden": true,
2723
- "aliases": [],
2724
- "examples": [
2725
- "$ heroku run:inside web.1 bash"
2726
- ],
2727
- "flags": {
2728
- "app": {
2729
- "name": "app",
2730
- "type": "option",
2731
- "char": "a",
2732
- "description": "app to run command against",
2733
- "required": true,
2734
- "multiple": false
2735
- },
2736
- "remote": {
2737
- "name": "remote",
2738
- "type": "option",
2739
- "char": "r",
2740
- "description": "git remote of app to use",
2741
- "multiple": false
2742
- },
2743
- "exit-code": {
2744
- "name": "exit-code",
2745
- "type": "boolean",
2746
- "char": "x",
2747
- "description": "passthrough the exit code of the remote command",
2748
- "allowNo": false
2749
- },
2750
- "env": {
2751
- "name": "env",
2752
- "type": "option",
2753
- "char": "e",
2754
- "description": "environment variables to set (use ';' to split multiple vars)",
2755
- "multiple": false
2756
- },
2757
- "listen": {
2758
- "name": "listen",
2759
- "type": "boolean",
2760
- "description": "listen on a local port",
2761
- "hidden": true,
2762
- "allowNo": false
2763
- }
2764
- },
2765
- "args": {}
2766
- },
2767
2581
  "sessions:destroy": {
2768
2582
  "id": "sessions:destroy",
2769
2583
  "description": "delete (logout) OAuth session by ID",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "8.4.1-beta.3",
4
+ "version": "8.4.2-beta.0",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -15,10 +15,11 @@
15
15
  "@heroku-cli/plugin-ci-v5": "^8.2.0",
16
16
  "@heroku-cli/plugin-container-registry-v5": "^8.2.0",
17
17
  "@heroku-cli/plugin-orgs-v5": "^8.2.0",
18
- "@heroku-cli/plugin-pg-v5": "^8.4.1-beta.3",
18
+ "@heroku-cli/plugin-pg-v5": "^8.4.2-beta.0",
19
19
  "@heroku-cli/plugin-ps": "^8.1.7",
20
20
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
21
21
  "@heroku-cli/plugin-redis-v5": "^8.2.0",
22
+ "@heroku-cli/plugin-run": "8.1.4",
22
23
  "@heroku-cli/plugin-spaces": "^8.4.0",
23
24
  "@heroku-cli/schema": "^1.0.25",
24
25
  "@heroku/buildpack-registry": "^1.0.1",
@@ -150,6 +151,7 @@
150
151
  "@heroku-cli/plugin-pg-v5",
151
152
  "@heroku-cli/plugin-ps-exec",
152
153
  "@heroku-cli/plugin-redis-v5",
154
+ "@heroku-cli/plugin-run",
153
155
  "@heroku-cli/plugin-spaces",
154
156
  "@oclif/plugin-commands",
155
157
  "@oclif/plugin-help",
@@ -338,5 +340,5 @@
338
340
  "version": "oclif readme --multi && git add README.md ../../docs"
339
341
  },
340
342
  "types": "lib/index.d.ts",
341
- "gitHead": "c659d92b384402219ff3f4f8a0120e42782b35c2"
343
+ "gitHead": "77d4e4693d2859abba3156da735867c79668eae4"
342
344
  }
@@ -1,15 +0,0 @@
1
- import { Command } from '@heroku-cli/command';
2
- export default class RunDetached extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static strict: boolean;
6
- static flags: {
7
- app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- env: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
- size: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
- tail: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
- type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
- };
14
- run(): Promise<void>;
15
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /* eslint-disable @typescript-eslint/ban-ts-comment */
4
- // tslint:disable:file-name-casing
5
- const color_1 = require("@heroku-cli/color");
6
- const command_1 = require("@heroku-cli/command");
7
- const completions_1 = require("@heroku-cli/command/lib/completions");
8
- const core_1 = require("@oclif/core");
9
- const dyno_1 = require("../../lib/run/dyno");
10
- const helpers_1 = require("../../lib/run/helpers");
11
- const log_displayer_1 = require("../../lib/run/log-displayer");
12
- class RunDetached extends command_1.Command {
13
- async run() {
14
- const { flags, argv } = await this.parse(RunDetached);
15
- const opts = {
16
- heroku: this.heroku,
17
- app: flags.app,
18
- command: (0, helpers_1.buildCommand)(argv),
19
- size: flags.size,
20
- type: flags.type,
21
- env: flags.env,
22
- attach: false,
23
- };
24
- if (!opts.command) {
25
- throw new Error('Usage: heroku run COMMAND\n\nExample: heroku run bash');
26
- }
27
- const dyno = new dyno_1.default(opts);
28
- await dyno.start();
29
- if (flags.tail) {
30
- await (0, log_displayer_1.default)(this.heroku, {
31
- app: flags.app,
32
- // @ts-ignore
33
- dyno: dyno.dyno.name,
34
- tail: true,
35
- });
36
- }
37
- else {
38
- // @ts-ignore
39
- core_1.ux.log(`Run ${color_1.default.cmd('heroku logs --app ' + dyno.opts.app + ' --dyno ' + dyno.dyno.name)} to view the output.`);
40
- }
41
- }
42
- }
43
- exports.default = RunDetached;
44
- RunDetached.description = 'run a detached dyno, where output is sent to your logs';
45
- RunDetached.examples = [
46
- '$ heroku run:detached ls',
47
- ];
48
- RunDetached.strict = false;
49
- RunDetached.flags = {
50
- app: command_1.flags.app({ required: true }),
51
- remote: command_1.flags.remote(),
52
- env: command_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
53
- size: command_1.flags.string({ char: 's', description: 'dyno size', completion: completions_1.DynoSizeCompletion }),
54
- tail: command_1.flags.boolean({ char: 't', description: 'continually stream logs' }),
55
- type: command_1.flags.string({ description: 'process type', completion: completions_1.ProcessTypeCompletion }),
56
- };
@@ -1,18 +0,0 @@
1
- import { Command } from '@heroku-cli/command';
2
- export default class Run extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static strict: boolean;
6
- static flags: {
7
- app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- size: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
- type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
- 'exit-code': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
- env: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
- 'no-tty': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
- listen: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
- 'no-notify': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
- };
17
- run(): Promise<void>;
18
- }
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const command_1 = require("@heroku-cli/command");
4
- const completions_1 = require("@heroku-cli/command/lib/completions");
5
- const core_1 = require("@oclif/core");
6
- const debug_1 = require("debug");
7
- const dyno_1 = require("../../lib/run/dyno");
8
- const helpers_1 = require("../../lib/run/helpers");
9
- const debug = (0, debug_1.default)('heroku:run');
10
- class Run extends command_1.Command {
11
- async run() {
12
- const { argv, flags } = await this.parse(Run);
13
- const opts = {
14
- 'exit-code': flags['exit-code'],
15
- 'no-tty': flags['no-tty'],
16
- app: flags.app,
17
- attach: true,
18
- command: (0, helpers_1.buildCommand)(argv),
19
- env: flags.env,
20
- heroku: this.heroku,
21
- listen: flags.listen,
22
- notify: !flags['no-notify'],
23
- size: flags.size,
24
- type: flags.type,
25
- };
26
- if (!opts.command) {
27
- throw new Error('Usage: heroku run COMMAND\n\nExample: heroku run bash');
28
- }
29
- await this.heroku.get('/account');
30
- const dyno = new dyno_1.default(opts);
31
- try {
32
- await dyno.start();
33
- debug('done running');
34
- }
35
- catch (error) {
36
- debug(error);
37
- if (error.exitCode) {
38
- core_1.ux.error(error.message, { code: error.exitCode, exit: error.exitCode });
39
- }
40
- else {
41
- throw error;
42
- }
43
- }
44
- }
45
- }
46
- exports.default = Run;
47
- Run.description = 'run a one-off process inside a heroku dyno\nShows a notification if the dyno takes more than 20 seconds to start.';
48
- Run.examples = [
49
- '$ heroku run bash',
50
- '$ heroku run -s standard-2x -- myscript.sh -a arg1 -s arg2',
51
- ];
52
- // This is to allow for variable length arguments
53
- Run.strict = false;
54
- Run.flags = {
55
- app: command_1.flags.app({ description: 'parent app used by review apps', required: true }),
56
- remote: command_1.flags.remote(),
57
- size: command_1.flags.string({ char: 's', description: 'dyno size', completion: completions_1.DynoSizeCompletion }),
58
- type: command_1.flags.string({ description: 'process type', completion: completions_1.ProcessTypeCompletion }),
59
- 'exit-code': command_1.flags.boolean({ char: 'x', description: 'passthrough the exit code of the remote command' }),
60
- env: command_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
61
- 'no-tty': command_1.flags.boolean({ description: 'force the command to not run in a tty' }),
62
- listen: command_1.flags.boolean({ description: 'listen on a local port', hidden: true }),
63
- 'no-notify': command_1.flags.boolean({ description: 'disables notification when dyno is up (alternatively use HEROKU_NOTIFICATIONS=0)' }),
64
- };
@@ -1,15 +0,0 @@
1
- import { Command } from '@heroku-cli/command';
2
- export default class RunInside extends Command {
3
- static description: string;
4
- static hidden: boolean;
5
- static examples: string[];
6
- static flags: {
7
- app: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- remote: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- 'exit-code': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
- env: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
- listen: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
- };
13
- static strict: boolean;
14
- run(): Promise<void>;
15
- }
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:disable:file-name-casing
4
- const command_1 = require("@heroku-cli/command");
5
- const core_1 = require("@oclif/core");
6
- const debug_1 = require("debug");
7
- const dyno_1 = require("../../lib/run/dyno");
8
- const helpers_1 = require("../../lib/run/helpers");
9
- const debug = (0, debug_1.default)('heroku:run:inside');
10
- class RunInside extends command_1.Command {
11
- async run() {
12
- const parsed = await this.parse(RunInside);
13
- const { flags } = parsed;
14
- const argv = parsed.argv;
15
- if (argv.length < 2) {
16
- throw new Error('Usage: heroku run:inside DYNO COMMAND\n\nExample: heroku run:inside web.1 bash');
17
- }
18
- const opts = {
19
- 'exit-code': flags['exit-code'],
20
- app: flags.app,
21
- command: (0, helpers_1.buildCommand)(argv.slice(1)),
22
- dyno: argv[0],
23
- env: flags.env,
24
- heroku: this.heroku,
25
- listen: flags.listen,
26
- };
27
- const dyno = new dyno_1.default(opts);
28
- try {
29
- await dyno.start();
30
- }
31
- catch (error) {
32
- debug(error);
33
- if (error.exitCode) {
34
- core_1.ux.exit(error.exitCode);
35
- }
36
- else {
37
- throw error;
38
- }
39
- }
40
- }
41
- }
42
- exports.default = RunInside;
43
- RunInside.description = 'run a one-off process inside an existing heroku dyno';
44
- RunInside.hidden = true;
45
- RunInside.examples = [
46
- '$ heroku run:inside web.1 bash',
47
- ];
48
- RunInside.flags = {
49
- app: command_1.flags.app({ required: true }),
50
- remote: command_1.flags.remote(),
51
- 'exit-code': command_1.flags.boolean({ char: 'x', description: 'passthrough the exit code of the remote command' }),
52
- env: command_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
53
- listen: command_1.flags.boolean({ description: 'listen on a local port', hidden: true }),
54
- };
55
- RunInside.strict = false;