Skip to content

Commit e316efc

Browse files
authored
Merge pull request #2026 from contentstack/feat/DX-3287-progress-manager
feat: implemented progress and summary manager in utilities plugin
2 parents 77fffaf + 12804d3 commit e316efc

38 files changed

Lines changed: 3693 additions & 618 deletions

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fileignoreconfig:
22
- filename: pnpm-lock.yaml
3-
checksum: 0c320557538f6b52f375b13221323d8700692a45e744128788785f27e7c72f73
3+
checksum: 0bfb05bb772a26be604bab6c93a58f93bcdc564b26547a1e8365222a679ae23d
44
- filename: packages/contentstack-import/test/integration/auth-token-modules/environments.test.js
55
checksum: bc6f06b75d082aaf99e2f2f4b932b143765e2f14086967fb8973fe1b2ca6c03e
66
- filename: packages/contentstack-import/test/integration/environments.test.js

package-lock.json

Lines changed: 233 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-config/src/commands/config/get/log.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,21 @@ export default class LogGetCommand extends Command {
1111
const currentLoggingConfig = configHandler.get('log') || {};
1212
const logLevel = currentLoggingConfig?.level;
1313
const logPath = currentLoggingConfig?.path;
14+
const showConsoleLogs = currentLoggingConfig?.showConsoleLogs;
1415

1516
if (logLevel || logPath) {
1617
const logConfigList = [
1718
{
1819
'Log Level': logLevel || 'Not set',
1920
'Log Path': logPath || 'Not set',
21+
'Show Console Logs': showConsoleLogs !== undefined ? String(showConsoleLogs) : 'Not set',
2022
},
2123
];
2224

2325
const headers: TableHeader[] = [
2426
{ value: 'Log Level' },
2527
{ value: 'Log Path' },
28+
{ value: 'Show Console Logs' },
2629
];
2730

2831
cliux.table(headers, logConfigList);

packages/contentstack-config/src/commands/config/set/log.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export default class LogSetCommand extends Command {
3434
let logLevel: string = flags['level'];
3535
let logPath: string = flags['path'];
3636
const showConsoleLogs: boolean = flags['show-console-logs'];
37-
37+
const currentLoggingConfig = configHandler.get('log') || {};
38+
logLevel = logLevel || currentLoggingConfig?.level;
39+
logPath = logPath || currentLoggingConfig?.path;
3840
// Interactive prompts if not passed via flags
3941
if (!logLevel) {
4042
logLevel = await interactive.askLogLevel();
@@ -44,10 +46,9 @@ export default class LogSetCommand extends Command {
4446
logPath = await interactive.askLogPath();
4547
}
4648

47-
const currentLoggingConfig = configHandler.get('log') || {};
4849
if (logLevel) currentLoggingConfig.level = logLevel;
4950
if (logPath) currentLoggingConfig.path = logPath;
50-
currentLoggingConfig['show-console-logs'] = showConsoleLogs;
51+
currentLoggingConfig.showConsoleLogs = showConsoleLogs;
5152

5253
configHandler.set('log', currentLoggingConfig);
5354

0 commit comments

Comments
 (0)