We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da3acf commit fd2f8feCopy full SHA for fd2f8fe
index.js
@@ -108,17 +108,19 @@ function init(flags) {
108
}
109
110
function update() {
111
+ const spinner = ora('Updating ...').start();
112
const file = 'onepunch.json';
113
114
if (!fs.existsSync(file)) {
- abort('File onepunch.json is not present. Are you sure this is the right directory?');
115
+ abort(`File ${chalk.underline('onepunch.json')} is not present. Are you sure this is the right directory?`, spinner);
116
117
118
fs.copySync(
119
path.resolve(__dirname, 'template/src'),
120
'src',
121
{overwrite: true},
122
);
123
+ spinner.succeed(`Directory ${chalk.underline('src')} has been updated to release ${cli.pkg.version}.`);
124
125
126
function print(flags) {
0 commit comments