@contentstack/cli-config 1.15.2 → 1.15.3

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
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version)
21
- @contentstack/cli-config/1.15.2 linux-x64 node-v22.19.0
21
+ @contentstack/cli-config/1.15.3 linux-x64 node-v22.20.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -22,7 +22,7 @@ class LogSetCommand extends cli_command_1.Command {
22
22
  currentLoggingConfig.path = resolvedPath;
23
23
  }
24
24
  if (flags['show-console-logs'] !== undefined) {
25
- currentLoggingConfig['show-console-logs'] = flags['show-console-logs'];
25
+ currentLoggingConfig['showConsoleLogs'] = flags['show-console-logs'];
26
26
  }
27
27
  cli_utilities_1.configHandler.set('log', currentLoggingConfig);
28
28
  if (flags['level'] !== undefined) {
@@ -32,8 +32,9 @@ class LogSetCommand extends cli_command_1.Command {
32
32
  cli_utilities_1.cliux.success(cli_utilities_1.messageHandler.parse('CLI_CONFIG_LOG_PATH_SET', currentLoggingConfig.path));
33
33
  }
34
34
  if (flags['show-console-logs'] !== undefined) {
35
- cli_utilities_1.cliux.success(cli_utilities_1.messageHandler.parse('CLI_CONFIG_LOG_CONSOLE_SET', String(currentLoggingConfig['show-console-logs'])));
35
+ cli_utilities_1.cliux.success(cli_utilities_1.messageHandler.parse('CLI_CONFIG_LOG_CONSOLE_SET', String(currentLoggingConfig['showConsoleLogs'])));
36
36
  }
37
+ cli_utilities_1.cliux.success(cli_utilities_1.messageHandler.parse('CLI_CONFIG_LOG_SET_SUCCESS'));
37
38
  }
38
39
  catch (error) {
39
40
  cli_utilities_1.cliux.error('error', error);
@@ -28,7 +28,7 @@ function getEffectiveLogConfig(currentConfig = {}) {
28
28
  var _a;
29
29
  const logLevel = (currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig.level) || exports.LOG_CONFIG_DEFAULTS.LEVEL;
30
30
  const logPath = resolveLogPath((currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig.path) || exports.LOG_CONFIG_DEFAULTS.PATH);
31
- const showConsoleLogs = (_a = currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig['show-console-logs']) !== null && _a !== void 0 ? _a : exports.LOG_CONFIG_DEFAULTS.SHOW_CONSOLE_LOGS;
31
+ const showConsoleLogs = (_a = currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig['showConsoleLogs']) !== null && _a !== void 0 ? _a : exports.LOG_CONFIG_DEFAULTS.SHOW_CONSOLE_LOGS;
32
32
  return {
33
33
  level: logLevel,
34
34
  path: logPath,
@@ -548,5 +548,5 @@
548
548
  ]
549
549
  }
550
550
  },
551
- "version": "1.15.2"
551
+ "version": "1.15.3"
552
552
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-config",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "1.15.2",
4
+ "version": "1.15.3",
5
5
  "author": "Contentstack",
6
6
  "scripts": {
7
7
  "build": "npm run clean && npm run compile",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@contentstack/cli-command": "~1.6.1",
25
- "@contentstack/cli-utilities": "~1.14.1",
25
+ "@contentstack/cli-utilities": "~1.15.0",
26
26
  "@oclif/core": "^4.3.0",
27
27
  "@oclif/plugin-help": "^6.2.28",
28
28
  "lodash": "^4.17.21"