chore(v2): fix code style (revert previous changes)

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:38:12 +03:00
parent 1480a7eb80
commit 1f00d15c74
143 changed files with 457 additions and 458 deletions

View file

@ -26,7 +26,7 @@ if (!semver.satisfies(process.version, requiredVersion)) {
function wrapCommand(fn) {
return (...args) =>
fn(...args).catch(err => {
fn(...args).catch((err) => {
console.error(chalk.red(err.stack));
process.exitCode = 1;
});
@ -43,7 +43,7 @@ program
wrapCommand(init)(path.resolve(rootDir), siteName, template);
});
program.arguments('<command>').action(cmd => {
program.arguments('<command>').action((cmd) => {
program.outputHelp();
console.log(` ${chalk.red(`\n Unknown command ${chalk.yellow(cmd)}.`)}`);
console.log();