wp-blank-scripts 3.1.9 → 3.1.10
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.
- package/cli/pull.js +4 -3
- package/package.json +1 -1
package/cli/pull.js
CHANGED
|
@@ -9,9 +9,8 @@ const exitWithError = require('../utils/exitWithError');
|
|
|
9
9
|
const logger = require('../logger');
|
|
10
10
|
const { DEPLOY_OPTIONS } = require('../constants');
|
|
11
11
|
|
|
12
|
-
function handleError(err
|
|
12
|
+
function handleError(err) {
|
|
13
13
|
// Show error
|
|
14
|
-
spinner.stop();
|
|
15
14
|
logger.error('Dang! Something went wrong');
|
|
16
15
|
exitWithError(err);
|
|
17
16
|
}
|
|
@@ -24,6 +23,7 @@ function handleFinish(sqlFilePath, spinner) {
|
|
|
24
23
|
|
|
25
24
|
module.exports = async () => {
|
|
26
25
|
const settings = getSettings();
|
|
26
|
+
let spinner = ora('Starting pull...');
|
|
27
27
|
|
|
28
28
|
try {
|
|
29
29
|
const options = await getCliOptions([
|
|
@@ -57,12 +57,13 @@ module.exports = async () => {
|
|
|
57
57
|
},
|
|
58
58
|
]);
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
spinner.start();
|
|
61
61
|
|
|
62
62
|
const sqlFilePath = await pullSQL(options);
|
|
63
63
|
|
|
64
64
|
handleFinish(sqlFilePath, spinner);
|
|
65
65
|
} catch (err) {
|
|
66
|
+
spinner.stop();
|
|
66
67
|
handleError(err);
|
|
67
68
|
}
|
|
68
69
|
};
|