heroku 8.4.3-beta.0 → 8.4.4-beta.2

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.
@@ -0,0 +1,16 @@
1
+ import { Command } from '@heroku-cli/command';
2
+ export default class CiConfigGet extends Command {
3
+ static description: string;
4
+ static topic: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
8
+ app: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ pipeline: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
+ shell: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
+ };
12
+ static args: {
13
+ key: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
14
+ };
15
+ run(): Promise<void>;
16
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const command_1 = require("@heroku-cli/command");
4
+ const core_1 = require("@oclif/core");
5
+ const shellescape = require("shell-escape");
6
+ const api_1 = require("../../../lib/api");
7
+ const pipelines_1 = require("../../../lib/ci/pipelines");
8
+ class CiConfigGet extends command_1.Command {
9
+ async run() {
10
+ const { args, flags } = await this.parse(CiConfigGet);
11
+ const pipeline = await (0, pipelines_1.getPipeline)(flags, this);
12
+ const { body: config } = await (0, api_1.getPipelineConfigVars)(this.heroku, pipeline.id);
13
+ const value = config[args.key];
14
+ if (flags.shell) {
15
+ core_1.ux.log(`${args.key}=${shellescape([value])}`);
16
+ }
17
+ else {
18
+ core_1.ux.log((value !== null && value !== undefined) ? value : 'undefined');
19
+ }
20
+ }
21
+ }
22
+ exports.default = CiConfigGet;
23
+ CiConfigGet.description = 'get a CI config var';
24
+ CiConfigGet.topic = 'ci';
25
+ CiConfigGet.examples = [
26
+ `$ heroku ci:config:get --pipeline=PIPELINE RAILS_ENV
27
+ test`,
28
+ ];
29
+ CiConfigGet.flags = {
30
+ help: command_1.flags.help({ char: 'h' }),
31
+ app: command_1.flags.app({ required: false }),
32
+ pipeline: command_1.flags.pipeline({ required: false }),
33
+ shell: command_1.flags.boolean({ char: 's', description: 'output config var in shell format' }),
34
+ };
35
+ CiConfigGet.args = {
36
+ key: core_1.Args.string({ required: true }),
37
+ };
@@ -7,8 +7,8 @@ export default class DomainsIndex extends Command {
7
7
  extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
8
8
  'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
9
9
  sort: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
- columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
10
  filter: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
+ columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
12
  csv: import("@oclif/core/lib/interfaces").Flag<boolean>;
13
13
  output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
14
  help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
@@ -9,7 +9,7 @@ export default class Index extends Command {
9
9
  static flags: {
10
10
  procfile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
11
  env: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
- port: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
12
+ port: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
13
  restart: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
14
  concurrency: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
15
15
  };
@@ -61,6 +61,7 @@ Index.flags = {
61
61
  port: core_1.Flags.string({
62
62
  char: 'p',
63
63
  description: 'port to listen on',
64
+ default: '5001',
64
65
  }),
65
66
  restart: core_1.Flags.boolean({
66
67
  char: 'r',
@@ -5,7 +5,7 @@ const command_1 = require("@heroku-cli/command");
5
5
  const completions_1 = require("@heroku-cli/command/lib/completions");
6
6
  const core_1 = require("@oclif/core");
7
7
  const inquirer_1 = require("inquirer");
8
- const api_1 = require("../../lib/pipelines/api");
8
+ const api_1 = require("../../lib/api");
9
9
  const disambiguate_1 = require("../../lib/pipelines/disambiguate");
10
10
  const infer_1 = require("../../lib/pipelines/infer");
11
11
  const stages_1 = require("../../lib/pipelines/stages");
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
- const api_1 = require("../../lib/pipelines/api");
5
+ const api_1 = require("../../lib/api");
6
6
  const github_api_1 = require("../../lib/pipelines/github-api");
7
7
  const kolkrabbi_api_1 = require("../../lib/pipelines/kolkrabbi-api");
8
8
  const get_github_token_1 = require("../../lib/pipelines/setup/get-github-token");
@@ -5,7 +5,7 @@ const command_1 = require("@heroku-cli/command");
5
5
  const completions_1 = require("@heroku-cli/command/lib/completions");
6
6
  const core_1 = require("@oclif/core");
7
7
  const inquirer_1 = require("inquirer");
8
- const api_1 = require("../../lib/pipelines/api");
8
+ const api_1 = require("../../lib/api");
9
9
  const infer_1 = require("../../lib/pipelines/infer");
10
10
  const stages_1 = require("../../lib/pipelines/stages");
11
11
  class Create extends command_1.Command {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("../../lib/pipelines/api");
6
+ const api_1 = require("../../lib/api");
7
7
  const disambiguate_1 = require("../../lib/pipelines/disambiguate");
8
8
  class PipelinesDestroy extends command_1.Command {
9
9
  async run() {
@@ -4,7 +4,7 @@ const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
6
  const http_call_1 = require("http-call");
7
- const api_1 = require("../../lib/pipelines/api");
7
+ const api_1 = require("../../lib/api");
8
8
  const kolkrabbi_api_1 = require("../../lib/pipelines/kolkrabbi-api");
9
9
  const PROMOTION_ORDER = ['development', 'staging', 'production'];
10
10
  async function diff(targetApp, downstreamApp, githubToken, herokuUserAgent) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const command_1 = require("@heroku-cli/command");
4
4
  const core_1 = require("@oclif/core");
5
- const api_1 = require("../../lib/pipelines/api");
5
+ const api_1 = require("../../lib/api");
6
6
  const disambiguate_1 = require("../../lib/pipelines/disambiguate");
7
7
  const render_pipeline_1 = require("../../lib/pipelines/render-pipeline");
8
8
  class PipelinesInfo extends command_1.Command {
@@ -8,7 +8,7 @@ const assert = require("assert");
8
8
  const node_fetch_1 = require("node-fetch");
9
9
  const Stream = require("stream");
10
10
  const util = require("util");
11
- const api_1 = require("../../lib/pipelines/api");
11
+ const api_1 = require("../../lib/api");
12
12
  const key_by_1 = require("../../lib/pipelines/key-by");
13
13
  const sleep = (time) => {
14
14
  return new Promise(resolve => setTimeout(resolve, time));
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("../../lib/pipelines/api");
6
+ const api_1 = require("../../lib/api");
7
7
  class PipelinesRemove extends command_1.Command {
8
8
  async run() {
9
9
  const { flags: { app } } = await this.parse(PipelinesRemove);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("../../lib/pipelines/api");
6
+ const api_1 = require("../../lib/api");
7
7
  const disambiguate_1 = require("../../lib/pipelines/disambiguate");
8
8
  class PipelinesRename extends command_1.Command {
9
9
  async run() {
@@ -5,7 +5,7 @@ const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
6
  const open = require("open");
7
7
  const debug_1 = require("debug");
8
- const api_1 = require("../../lib/pipelines/api");
8
+ const api_1 = require("../../lib/api");
9
9
  const github_api_1 = require("../../lib/pipelines/github-api");
10
10
  const kolkrabbi_api_1 = require("../../lib/pipelines/kolkrabbi-api");
11
11
  const create_apps_1 = require("../../lib/pipelines/setup/create-apps");
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("../../lib/pipelines/api");
6
+ const api_1 = require("../../lib/api");
7
7
  const disambiguate_1 = require("../../lib/pipelines/disambiguate");
8
8
  const render_pipeline_1 = require("../../lib/pipelines/render-pipeline");
9
9
  async function getTeamOwner(heroku, name) {
@@ -4,7 +4,7 @@ const color_1 = require("@heroku-cli/color");
4
4
  const command_1 = require("@heroku-cli/command");
5
5
  const completions_1 = require("@heroku-cli/command/lib/completions");
6
6
  const core_1 = require("@oclif/core");
7
- const api_1 = require("../../lib/pipelines/api");
7
+ const api_1 = require("../../lib/api");
8
8
  class PipelinesUpdate extends command_1.Command {
9
9
  async run() {
10
10
  const { flags } = await this.parse(PipelinesUpdate);
@@ -21,7 +21,7 @@ const heroku = new command_1.APIClient(config);
21
21
  const token = heroku.auth;
22
22
  const debug = require('debug')('global_telemetry');
23
23
  const rollbar = new Rollbar({
24
- accessToken: '41f8730238814af69c248e2f7ca59ff2',
24
+ accessToken: '20783109b0064dbb85be0b2c5a5a5f79',
25
25
  captureUncaught: true,
26
26
  captureUnhandledRejections: true,
27
27
  environment: isDev ? 'development' : 'production',
@@ -23,3 +23,4 @@ export declare function patchCoupling(heroku: APIClient, id: string, stage: stri
23
23
  export declare function removeCoupling(heroku: APIClient, app: string): Promise<import("http-call").HTTP<unknown>>;
24
24
  export declare function updateCoupling(heroku: APIClient, app: string, stage: string): Promise<import("http-call").HTTP<unknown>>;
25
25
  export declare function getReleases(heroku: APIClient, appId: string): Promise<import("http-call").HTTP<Heroku.Release[]>>;
26
+ export declare function getPipelineConfigVars(heroku: APIClient, pipelineID: string): Promise<import("http-call").HTTP<Heroku.ConfigVars>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReleases = exports.updateCoupling = exports.removeCoupling = exports.patchCoupling = exports.listPipelineApps = exports.getAppSetup = exports.getAccountInfo = exports.getTeam = exports.updatePipeline = exports.getPipeline = exports.getCoupling = exports.findPipelineByName = exports.destroyPipeline = exports.createPipelineTransfer = exports.createPipeline = exports.createCoupling = exports.postCoupling = exports.createAppSetup = exports.PIPELINES_HEADER = exports.FILTERS_HEADER = exports.V3_HEADER = void 0;
3
+ exports.getPipelineConfigVars = exports.getReleases = exports.updateCoupling = exports.removeCoupling = exports.patchCoupling = exports.listPipelineApps = exports.getAppSetup = exports.getAccountInfo = exports.getTeam = exports.updatePipeline = exports.getPipeline = exports.getCoupling = exports.findPipelineByName = exports.destroyPipeline = exports.createPipelineTransfer = exports.createPipeline = exports.createCoupling = exports.postCoupling = exports.createAppSetup = exports.PIPELINES_HEADER = exports.FILTERS_HEADER = exports.V3_HEADER = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  exports.V3_HEADER = 'application/vnd.heroku+json; version=3';
6
6
  exports.FILTERS_HEADER = `${exports.V3_HEADER}.filters`;
@@ -128,3 +128,10 @@ function getReleases(heroku, appId) {
128
128
  });
129
129
  }
130
130
  exports.getReleases = getReleases;
131
+ function getPipelineConfigVars(heroku, pipelineID) {
132
+ return heroku.request(`/pipelines/${pipelineID}/stage/test/config-vars`, {
133
+ method: 'GET',
134
+ headers: { Accept: exports.PIPELINES_HEADER },
135
+ });
136
+ }
137
+ exports.getPipelineConfigVars = getPipelineConfigVars;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const inquirer_1 = require("inquirer");
4
4
  const validator_1 = require("validator");
5
- const api_1 = require("./api");
5
+ const api_1 = require("../api");
6
6
  async function disambiguate(heroku, pipelineIDOrName) {
7
7
  let pipeline;
8
8
  if ((0, validator_1.isUUID)(pipelineIDOrName)) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOwner = exports.warnMixedOwnership = void 0;
4
4
  const color_1 = require("@heroku-cli/color");
5
5
  const core_1 = require("@oclif/core");
6
- const api_1 = require("./api");
6
+ const api_1 = require("../api");
7
7
  function warnMixedOwnership(pipelineApps, pipeline, owner) {
8
8
  const hasMixedOwnership = pipelineApps.some(app => {
9
9
  return (app.owner && app.owner.id) !== pipeline.owner.id;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const api_1 = require("../api");
4
+ const api_1 = require("../../api");
5
5
  function createApp(heroku, { archiveURL, name, organization, pipeline, stage }) {
6
6
  const params = {
7
7
  source_blob: { url: archiveURL },
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const api = require("../api");
3
+ const api = require("../../api");
4
4
  const core_1 = require("@oclif/core");
5
5
  const color_1 = require("@heroku-cli/color");
6
6
  function wait(ms) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.4.3-beta.0",
2
+ "version": "8.4.4-beta.2",
3
3
  "commands": {
4
4
  "console": {
5
5
  "id": "console",
@@ -1876,7 +1876,8 @@
1876
1876
  "type": "option",
1877
1877
  "char": "p",
1878
1878
  "description": "port to listen on",
1879
- "multiple": false
1879
+ "multiple": false,
1880
+ "default": "5001"
1880
1881
  },
1881
1882
  "restart": {
1882
1883
  "name": "restart",
@@ -3129,6 +3130,57 @@
3129
3130
  },
3130
3131
  "args": {}
3131
3132
  },
3133
+ "ci:config:get": {
3134
+ "id": "ci:config:get",
3135
+ "description": "get a CI config var",
3136
+ "strict": true,
3137
+ "pluginName": "heroku",
3138
+ "pluginAlias": "heroku",
3139
+ "pluginType": "core",
3140
+ "aliases": [],
3141
+ "examples": [
3142
+ "$ heroku ci:config:get --pipeline=PIPELINE RAILS_ENV\n test"
3143
+ ],
3144
+ "flags": {
3145
+ "help": {
3146
+ "name": "help",
3147
+ "type": "boolean",
3148
+ "char": "h",
3149
+ "description": "Show CLI help.",
3150
+ "allowNo": false
3151
+ },
3152
+ "app": {
3153
+ "name": "app",
3154
+ "type": "option",
3155
+ "char": "a",
3156
+ "description": "app to run command against",
3157
+ "required": false,
3158
+ "multiple": false
3159
+ },
3160
+ "pipeline": {
3161
+ "name": "pipeline",
3162
+ "type": "option",
3163
+ "char": "p",
3164
+ "description": "name of pipeline",
3165
+ "required": false,
3166
+ "multiple": false
3167
+ },
3168
+ "shell": {
3169
+ "name": "shell",
3170
+ "type": "boolean",
3171
+ "char": "s",
3172
+ "description": "output config var in shell format",
3173
+ "allowNo": false
3174
+ }
3175
+ },
3176
+ "args": {
3177
+ "key": {
3178
+ "name": "key",
3179
+ "required": true
3180
+ }
3181
+ },
3182
+ "topic": "ci"
3183
+ },
3132
3184
  "ps:autoscale:disable": {
3133
3185
  "id": "ps:autoscale:disable",
3134
3186
  "description": "disable web dyno autoscaling",
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.3-beta.0",
4
+ "version": "8.4.4-beta.2",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -11,12 +11,12 @@
11
11
  "@heroku-cli/command-v9": "npm:@heroku-cli/command@^9.0.2",
12
12
  "@heroku-cli/notifications": "^1.2.2",
13
13
  "@heroku-cli/plugin-addons-v5": "^8.4.0",
14
- "@heroku-cli/plugin-apps-v5": "^8.4.0",
14
+ "@heroku-cli/plugin-apps-v5": "^8.4.4-beta.0",
15
15
  "@heroku-cli/plugin-certs-v5": "^8.2.0",
16
16
  "@heroku-cli/plugin-ci-v5": "^8.2.0",
17
17
  "@heroku-cli/plugin-container-registry-v5": "^8.2.0",
18
18
  "@heroku-cli/plugin-orgs-v5": "^8.2.0",
19
- "@heroku-cli/plugin-pg-v5": "^8.4.2",
19
+ "@heroku-cli/plugin-pg-v5": "^8.4.4-beta.0",
20
20
  "@heroku-cli/plugin-ps": "^8.1.7",
21
21
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
22
22
  "@heroku-cli/plugin-redis-v5": "^8.2.0",
@@ -341,5 +341,5 @@
341
341
  "version": "oclif readme --multi && git add README.md ../../docs"
342
342
  },
343
343
  "types": "lib/index.d.ts",
344
- "gitHead": "4df2d080bdebfae7132b23e764b956afe4e5f01a"
344
+ "gitHead": "6804743113e835f3cd9530ca31f5c5db7cafccd1"
345
345
  }