Skip to content

Commit aa65f72

Browse files
Merge branch 'v2-beta-dev' into fix/config-test
2 parents 5329f27 + db03e82 commit aa65f72

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,14 @@ export default class ImportCommand extends Command {
148148
const moduleImporter = new ModuleImporter(managementAPIClient, importConfig);
149149
const result = await moduleImporter.start();
150150
backupDir = importConfig.backupDir;
151-
//Note: Final summary is now handled by summary manager
151+
152+
if (!result?.noSuccessMsg) {
153+
const successMessage = importConfig.stackName
154+
? `Successfully imported the content to the stack named ${importConfig.stackName} with the API key ${importConfig.apiKey} .`
155+
: `The content has been imported to the stack ${importConfig.apiKey} successfully!`;
156+
log.success(successMessage, importConfig.context);
157+
}
158+
152159
CLIProgressManager.printGlobalSummary();
153160
this.logSuccessAndBackupMessages(backupDir, importConfig);
154161
// Clear progress module setting now that import is complete

0 commit comments

Comments
 (0)