Skip to content

Commit b511ca8

Browse files
fix integrate loadChalk utility in export and import commands
1 parent 0f16186 commit b511ca8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages
    • contentstack-export/src/commands/cm/stacks
    • contentstack-import/src/commands/cm/stacks

packages/contentstack-export/src/commands/cm/stacks/export.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
getSessionLogPath,
1515
CLIProgressManager,
1616
clearProgressModuleSetting,
17+
loadChalk,
1718
} from '@contentstack/cli-utilities';
1819

1920
import { ModuleExporter } from '../../../export';
@@ -87,6 +88,7 @@ export default class ExportCommand extends Command {
8788
};
8889

8990
async run(): Promise<void> {
91+
await loadChalk();
9092
let exportDir: string = pathValidator('logs');
9193
try {
9294
const { flags } = await this.parse(ExportCommand);

packages/contentstack-import/src/commands/cm/stacks/import.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
cliux,
1414
clearProgressModuleSetting,
1515
createLogContext,
16+
loadChalk,
1617
} from '@contentstack/cli-utilities';
1718

1819
import { Context, ImportConfig } from '../../../types';
@@ -117,6 +118,7 @@ export default class ImportCommand extends Command {
117118
// setup import config
118119
// initialize the importer
119120
// start import
121+
await loadChalk();
120122
let backupDir: string;
121123
let importConfig: ImportConfig;
122124
try {

0 commit comments

Comments
 (0)