heroku 8.4.1 → 8.4.2-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.
@@ -1,15 +1,16 @@
1
- import { Command } from '@heroku-cli/command';
1
+ import { Command } from '@heroku-cli/command-v9';
2
+ import '@oclif/core-v1/lib/parser';
2
3
  export default class RunDetached extends Command {
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  static strict: boolean;
6
7
  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>;
8
+ app: import("@oclif/core-v1/lib/interfaces").OptionFlag<string>;
9
+ remote: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
10
+ env: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
11
+ size: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
12
+ tail: import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
13
+ type: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
13
14
  };
14
15
  run(): Promise<void>;
15
16
  }
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable @typescript-eslint/ban-ts-comment */
4
4
  // tslint:disable:file-name-casing
5
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 {
6
+ const command_v9_1 = require("@heroku-cli/command-v9");
7
+ const completions_1 = require("@heroku-cli/command-v9/lib/completions");
8
+ const core_v1_1 = require("@oclif/core-v1");
9
+ require("@oclif/core-v1/lib/parser");
10
+ const dyno_1 = require("@heroku-cli/plugin-run/lib/lib/dyno");
11
+ const helpers_1 = require("@heroku-cli/plugin-run/lib/lib/helpers");
12
+ const log_displayer_1 = require("@heroku-cli/plugin-run/lib/lib/log-displayer");
13
+ class RunDetached extends command_v9_1.Command {
13
14
  async run() {
14
15
  const { flags, argv } = await this.parse(RunDetached);
15
16
  const opts = {
@@ -36,7 +37,7 @@ class RunDetached extends command_1.Command {
36
37
  }
37
38
  else {
38
39
  // @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
+ core_v1_1.CliUx.ux.log(`Run ${color_1.default.cmd('heroku logs --app ' + dyno.opts.app + ' --dyno ' + dyno.dyno.name)} to view the output.`);
40
41
  }
41
42
  }
42
43
  }
@@ -47,10 +48,10 @@ RunDetached.examples = [
47
48
  ];
48
49
  RunDetached.strict = false;
49
50
  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 }),
51
+ app: command_v9_1.flags.app({ required: true }),
52
+ remote: command_v9_1.flags.remote(),
53
+ env: command_v9_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
54
+ size: command_v9_1.flags.string({ char: 's', description: 'dyno size', completion: completions_1.DynoSizeCompletion }),
55
+ tail: command_v9_1.flags.boolean({ char: 't', description: 'continually stream logs' }),
56
+ type: command_v9_1.flags.string({ description: 'process type', completion: completions_1.ProcessTypeCompletion }),
56
57
  };
@@ -1,18 +1,19 @@
1
- import { Command } from '@heroku-cli/command';
1
+ import { Command } from '@heroku-cli/command-v9';
2
+ import '@oclif/core-v1/lib/parser';
2
3
  export default class Run extends Command {
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  static strict: boolean;
6
7
  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>;
8
+ app: import("@oclif/core-v1/lib/interfaces").OptionFlag<string>;
9
+ remote: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
10
+ size: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
11
+ type: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
12
+ 'exit-code': import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
13
+ env: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
14
+ 'no-tty': import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
15
+ listen: import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
16
+ 'no-notify': import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
16
17
  };
17
18
  run(): Promise<void>;
18
19
  }
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const command_1 = require("@heroku-cli/command");
3
+ const command_v9_1 = require("@heroku-cli/command-v9");
4
4
  const completions_1 = require("@heroku-cli/command/lib/completions");
5
- const core_1 = require("@oclif/core");
5
+ const core_v1_1 = require("@oclif/core-v1");
6
+ require("@oclif/core-v1/lib/parser");
6
7
  const debug_1 = require("debug");
7
- const dyno_1 = require("../../lib/run/dyno");
8
- const helpers_1 = require("../../lib/run/helpers");
8
+ const dyno_1 = require("@heroku-cli/plugin-run/lib/lib/dyno");
9
+ const helpers_1 = require("@heroku-cli/plugin-run/lib/lib/helpers");
9
10
  const debug = (0, debug_1.default)('heroku:run');
10
- class Run extends command_1.Command {
11
+ class Run extends command_v9_1.Command {
11
12
  async run() {
12
13
  const { argv, flags } = await this.parse(Run);
13
14
  const opts = {
@@ -35,7 +36,7 @@ class Run extends command_1.Command {
35
36
  catch (error) {
36
37
  debug(error);
37
38
  if (error.exitCode) {
38
- core_1.ux.error(error.message, { code: error.exitCode, exit: error.exitCode });
39
+ core_v1_1.CliUx.ux.error(error.message, { code: error.exitCode, exit: error.exitCode });
39
40
  }
40
41
  else {
41
42
  throw error;
@@ -52,13 +53,13 @@ Run.examples = [
52
53
  // This is to allow for variable length arguments
53
54
  Run.strict = false;
54
55
  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)' }),
56
+ app: command_v9_1.flags.app({ description: 'parent app used by review apps', required: true }),
57
+ remote: command_v9_1.flags.remote(),
58
+ size: command_v9_1.flags.string({ char: 's', description: 'dyno size', completion: completions_1.DynoSizeCompletion }),
59
+ type: command_v9_1.flags.string({ description: 'process type', completion: completions_1.ProcessTypeCompletion }),
60
+ 'exit-code': command_v9_1.flags.boolean({ char: 'x', description: 'passthrough the exit code of the remote command' }),
61
+ env: command_v9_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
62
+ 'no-tty': command_v9_1.flags.boolean({ description: 'force the command to not run in a tty' }),
63
+ listen: command_v9_1.flags.boolean({ description: 'listen on a local port', hidden: true }),
64
+ 'no-notify': command_v9_1.flags.boolean({ description: 'disables notification when dyno is up (alternatively use HEROKU_NOTIFICATIONS=0)' }),
64
65
  };
@@ -1,14 +1,15 @@
1
- import { Command } from '@heroku-cli/command';
1
+ import { Command } from '@heroku-cli/command-v9';
2
+ import '@oclif/core-v1/lib/parser';
2
3
  export default class RunInside extends Command {
3
4
  static description: string;
4
5
  static hidden: boolean;
5
6
  static examples: string[];
6
7
  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>;
8
+ app: import("@oclif/core-v1/lib/interfaces").OptionFlag<string>;
9
+ remote: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
10
+ 'exit-code': import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
11
+ env: import("@oclif/core-v1/lib/interfaces").OptionFlag<string | undefined>;
12
+ listen: import("@oclif/core-v1/lib/interfaces").BooleanFlag<boolean>;
12
13
  };
13
14
  static strict: boolean;
14
15
  run(): Promise<void>;
@@ -1,17 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  // tslint:disable:file-name-casing
4
- const command_1 = require("@heroku-cli/command");
5
- const core_1 = require("@oclif/core");
4
+ const command_v9_1 = require("@heroku-cli/command-v9");
5
+ const core_v1_1 = require("@oclif/core-v1");
6
+ require("@oclif/core-v1/lib/parser");
6
7
  const debug_1 = require("debug");
7
- const dyno_1 = require("../../lib/run/dyno");
8
- const helpers_1 = require("../../lib/run/helpers");
8
+ const dyno_1 = require("@heroku-cli/plugin-run/lib/lib/dyno");
9
+ const helpers_1 = require("@heroku-cli/plugin-run/lib/lib/helpers");
9
10
  const debug = (0, debug_1.default)('heroku:run:inside');
10
- class RunInside extends command_1.Command {
11
+ class RunInside extends command_v9_1.Command {
11
12
  async run() {
12
- const parsed = await this.parse(RunInside);
13
- const { flags } = parsed;
14
- const argv = parsed.argv;
13
+ const { flags, argv } = await this.parse(RunInside);
15
14
  if (argv.length < 2) {
16
15
  throw new Error('Usage: heroku run:inside DYNO COMMAND\n\nExample: heroku run:inside web.1 bash');
17
16
  }
@@ -31,7 +30,7 @@ class RunInside extends command_1.Command {
31
30
  catch (error) {
32
31
  debug(error);
33
32
  if (error.exitCode) {
34
- core_1.ux.exit(error.exitCode);
33
+ core_v1_1.CliUx.ux.exit(error.exitCode);
35
34
  }
36
35
  else {
37
36
  throw error;
@@ -46,10 +45,10 @@ RunInside.examples = [
46
45
  '$ heroku run:inside web.1 bash',
47
46
  ];
48
47
  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 }),
48
+ app: command_v9_1.flags.app({ required: true }),
49
+ remote: command_v9_1.flags.remote(),
50
+ 'exit-code': command_v9_1.flags.boolean({ char: 'x', description: 'passthrough the exit code of the remote command' }),
51
+ env: command_v9_1.flags.string({ char: 'e', description: "environment variables to set (use ';' to split multiple vars)" }),
52
+ listen: command_v9_1.flags.boolean({ description: 'listen on a local port', hidden: true }),
54
53
  };
55
54
  RunInside.strict = false;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.4.1",
2
+ "version": "8.4.2-beta.1",
3
3
  "commands": {
4
4
  "console": {
5
5
  "id": "console",
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "8.4.1",
4
+ "version": "8.4.2-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
10
  "@heroku-cli/command": "^10.0.0",
11
+ "@heroku-cli/command-v9": "npm:@heroku-cli/command@^9.0.2",
11
12
  "@heroku-cli/notifications": "^1.2.2",
12
13
  "@heroku-cli/plugin-addons-v5": "^8.4.0",
13
14
  "@heroku-cli/plugin-apps-v5": "^8.4.0",
@@ -15,15 +16,17 @@
15
16
  "@heroku-cli/plugin-ci-v5": "^8.2.0",
16
17
  "@heroku-cli/plugin-container-registry-v5": "^8.2.0",
17
18
  "@heroku-cli/plugin-orgs-v5": "^8.2.0",
18
- "@heroku-cli/plugin-pg-v5": "^8.4.1",
19
+ "@heroku-cli/plugin-pg-v5": "^8.4.2-beta.0",
19
20
  "@heroku-cli/plugin-ps": "^8.1.7",
20
21
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
21
22
  "@heroku-cli/plugin-redis-v5": "^8.2.0",
23
+ "@heroku-cli/plugin-run": "8.1.4",
22
24
  "@heroku-cli/plugin-spaces": "^8.4.0",
23
25
  "@heroku-cli/schema": "^1.0.25",
24
26
  "@heroku/buildpack-registry": "^1.0.1",
25
27
  "@heroku/eventsource": "^1.0.7",
26
28
  "@oclif/core": "^2.8.11",
29
+ "@oclif/core-v1": "npm:@oclif/core@^1.26.2",
27
30
  "@oclif/plugin-commands": "2.2.2",
28
31
  "@oclif/plugin-help": "^5",
29
32
  "@oclif/plugin-legacy": "^1.3.0",
@@ -338,5 +341,5 @@
338
341
  "version": "oclif readme --multi && git add README.md ../../docs"
339
342
  },
340
343
  "types": "lib/index.d.ts",
341
- "gitHead": "a3a203bd73e6c3b47b2d67a943e2aee3d5638c3f"
344
+ "gitHead": "862bf8c432e2e763ebaf8eab339e9fa62eafee55"
342
345
  }