@shoper/cli 0.5.2-4 → 0.5.2-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,6 +25,7 @@ import { ThemeError } from '../ui/theme_error.js';
|
|
|
25
25
|
import { mapToPermissionsTree } from '../../utils/directory_validator/directory_validator_utils.js';
|
|
26
26
|
import { mapChecksumToTree } from '../../../utils/checksums/checksums_utils.js';
|
|
27
27
|
import { ThemeUnpermittedActionsError } from './ui/theme_unpermitted_actions_error.js';
|
|
28
|
+
import { promptConfirmation } from '../../../ui/prompts/prompt_confirmation.js';
|
|
28
29
|
export class ThemePushCommand extends BaseThemeCommand {
|
|
29
30
|
static summary = 'Uploads your local theme files to the store and overwrites the current version of the theme in your store.';
|
|
30
31
|
static description = 'Check your local changes before pushing.\n\nYou must run this command from a specific theme directory (ID not needed).';
|
|
@@ -111,10 +112,12 @@ export class ThemePushCommand extends BaseThemeCommand {
|
|
|
111
112
|
themeFilesUploadApi
|
|
112
113
|
});
|
|
113
114
|
spinner.stop();
|
|
115
|
+
await promptConfirmation('press any key to continue...');
|
|
114
116
|
renderOnce(React.createElement(ThemePushedSuccess, { themeName: await ThemeInfoUtils.getThemeName(executionContext.themeRootDir) }));
|
|
115
117
|
}
|
|
116
118
|
catch (err) {
|
|
117
119
|
spinner?.stop();
|
|
120
|
+
await promptConfirmation('press any key to continue...');
|
|
118
121
|
renderOnce(React.createElement(ThemeError, { err: err, executionContext: executionContext }));
|
|
119
122
|
}
|
|
120
123
|
}
|