mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 14:36:59 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue