@contrail/cli 2.1.24 → 2.1.25

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
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/2.1.24 darwin-arm64 node-v18.13.0
20
+ @contrail/cli/2.1.25 darwin-arm64 node-v18.13.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -1,6 +1,7 @@
1
1
  import { Command } from '@oclif/core';
2
2
  export declare abstract class BaseCommand extends Command {
3
3
  static description: string;
4
+ skipConfirmEnv: boolean;
4
5
  static baseFlags: {
5
6
  logLevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
7
  alwaysConfirmEnv: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -9,6 +9,10 @@ const config_1 = require("./helpers/config/config");
9
9
  const auth_1 = require("@contrail/sdk/lib/auth/auth");
10
10
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
11
11
  class BaseCommand extends core_1.Command {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.skipConfirmEnv = false;
15
+ }
12
16
  async init() {
13
17
  await super.init();
14
18
  const { flags } = await this.parse({
@@ -18,7 +22,9 @@ class BaseCommand extends core_1.Command {
18
22
  strict: this.ctor.strict,
19
23
  });
20
24
  await this.setLogLevel(flags.logLevel);
21
- await this.confirmEnv(flags.alwaysConfirmEnv);
25
+ if (!this.skipConfirmEnv) {
26
+ await this.confirmEnv(flags.alwaysConfirmEnv);
27
+ }
22
28
  }
23
29
  async setLogLevel(logLevel) {
24
30
  if (logLevel) {
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../../basecommand';
2
2
  export default class ListConfigEnvironment extends BaseCommand {
3
+ skipConfirmEnv: boolean;
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  run(): Promise<void>;
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const config_1 = require("../../../helpers/config/config");
4
4
  const basecommand_1 = require("../../../basecommand");
5
5
  class ListConfigEnvironment extends basecommand_1.BaseCommand {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.skipConfirmEnv = true;
9
+ }
6
10
  async run() {
7
11
  const { flags } = await this.parse(ListConfigEnvironment);
8
12
  await super.setLogLevel(flags.logLevel);
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../../basecommand';
2
2
  export default class RemoveConfigEnvironment extends BaseCommand {
3
+ skipConfirmEnv: boolean;
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  static strict: boolean;
@@ -6,6 +6,10 @@ const basecommand_1 = require("../../../basecommand");
6
6
  const config_1 = require("../../../helpers/config/config");
7
7
  const logger_1 = tslib_1.__importDefault(require("../../../logger"));
8
8
  class RemoveConfigEnvironment extends basecommand_1.BaseCommand {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.skipConfirmEnv = true;
12
+ }
9
13
  async run() {
10
14
  const { flags } = await this.parse(RemoveConfigEnvironment);
11
15
  await super.setLogLevel(flags.logLevel);
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../../basecommand';
2
2
  export default class SetConfigEnvironment extends BaseCommand {
3
+ skipConfirmEnv: boolean;
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  static flags: {
@@ -6,6 +6,10 @@ const config_1 = require("../../../helpers/config/config");
6
6
  const basecommand_1 = require("../../../basecommand");
7
7
  const logger_1 = tslib_1.__importDefault(require("../../../logger"));
8
8
  class SetConfigEnvironment extends basecommand_1.BaseCommand {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.skipConfirmEnv = true;
12
+ }
9
13
  async run() {
10
14
  const { flags } = await this.parse(SetConfigEnvironment);
11
15
  await super.setLogLevel(flags.logLevel);
@@ -1,6 +1,7 @@
1
1
  import { BaseCommand } from '../../basecommand';
2
2
  export default class ListConfig extends BaseCommand {
3
3
  static description: string;
4
+ skipConfirmEnv: boolean;
4
5
  static examples: string[];
5
6
  run(): Promise<void>;
6
7
  }
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const config_1 = require("../../helpers/config/config");
4
4
  const basecommand_1 = require("../../basecommand");
5
5
  class ListConfig extends basecommand_1.BaseCommand {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.skipConfirmEnv = true;
9
+ }
6
10
  async run() {
7
11
  this.log(await (0, config_1.readVibeIQConfig)());
8
12
  }
@@ -1,6 +1,7 @@
1
1
  import { BaseCommand } from '../../basecommand';
2
2
  export default class RemoveConfig extends BaseCommand {
3
3
  static description: string;
4
+ skipConfirmEnv: boolean;
4
5
  static examples: string[];
5
6
  static strict: boolean;
6
7
  static flags: {
@@ -4,6 +4,10 @@ const core_1 = require("@oclif/core");
4
4
  const config_1 = require("../../helpers/config/config");
5
5
  const basecommand_1 = require("../../basecommand");
6
6
  class RemoveConfig extends basecommand_1.BaseCommand {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.skipConfirmEnv = true;
10
+ }
7
11
  async run() {
8
12
  const { flags } = await this.parse(RemoveConfig);
9
13
  await (0, config_1.deleteConfigs)(Object.keys(flags));
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../basecommand';
2
2
  export default class SetConfig extends BaseCommand {
3
+ skipConfirmEnv: boolean;
3
4
  static description: string;
4
5
  static examples: string[];
5
6
  static flags: {
@@ -6,6 +6,10 @@ const config_1 = require("../../helpers/config/config");
6
6
  const basecommand_1 = require("../../basecommand");
7
7
  const logger_1 = tslib_1.__importDefault(require("../../logger"));
8
8
  class SetConfig extends basecommand_1.BaseCommand {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.skipConfirmEnv = true;
12
+ }
9
13
  async run() {
10
14
  const { flags } = await this.parse(SetConfig);
11
15
  const config = {};
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.24",
2
+ "version": "2.1.25",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "2.1.24",
3
+ "version": "2.1.25",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",