From d8ada40bdfa1f1e3581f9e00f018f5936892acad Mon Sep 17 00:00:00 2001 From: Jeremy Weinstein Date: Wed, 16 Dec 2020 21:53:54 -0800 Subject: [PATCH] Add description to commands Case is consistent with other Commander commands (lowercase) --- src/index.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6ecb35acf..420082c59 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,18 +11,21 @@ export const MIN_NODE_VERSION = 10; const program = createCommand(); program.version(VERSION); -program.command('build [root]').action((path, options) => { - if (!isNodeVersionSupported()) { - return; - } +program + .command('build [root]') + .description('build the website') + .action((path, options) => { + if (!isNodeVersionSupported()) { + return; + } - const cmd = new BuildCommand(options); - cmd.run(path); -}); + const cmd = new BuildCommand(options); + cmd.run(path); + }); program .command('serve [root]') - .description('Runs the server') + .description('start the development server') .action((path, options) => { if (!isNodeVersionSupported()) { return;