File tree Expand file tree Collapse file tree
packages/contentstack-import/src/commands/cm/stacks Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments