@@ -98,14 +98,23 @@ export default class ImportSetupCommand extends Command {
9898
9999 CLIProgressManager . printGlobalSummary ( ) ;
100100
101- log . success (
102- `Backup folder and mapper files have been successfully created for the stack using the API key ${ importSetupConfig . apiKey } .` ,
103- importSetupConfig . context ,
104- ) ;
105- log . success (
106- `The backup folder has been created at '${ pathValidator ( path . join ( importSetupConfig . backupDir ) ) } '.` ,
107- importSetupConfig . context ,
101+ const successMessage = messageHandler . parse ( 'IMPORT_SETUP_SUCCESS' , importSetupConfig . apiKey ) ;
102+ const backupPathMessage = messageHandler . parse (
103+ 'IMPORT_SETUP_BACKUP_PATH' ,
104+ pathValidator ( path . join ( importSetupConfig . backupDir ) ) ,
108105 ) ;
106+
107+ log . success ( successMessage , importSetupConfig . context ) ;
108+ log . success ( backupPathMessage , importSetupConfig . context ) ;
109+
110+ // log.success maps to the info level, which is suppressed on the console for
111+ // progress-supported modules when showConsoleLogs is false. Print the backup
112+ // folder path directly so it is always visible, regardless of that setting.
113+ const showConsoleLogs = configHandler . get ( 'log' ) ?. showConsoleLogs ?? false ;
114+ if ( ! showConsoleLogs ) {
115+ cliux . print ( successMessage ) ;
116+ cliux . print ( backupPathMessage ) ;
117+ }
109118 } catch ( error ) {
110119 CLIProgressManager . printGlobalSummary ( ) ;
111120 handleAndLogError ( error ) ;
0 commit comments