Skip to content

Commit

Permalink
Add description to commands
Browse files Browse the repository at this point in the history
Case is consistent with other Commander commands (lowercase)
  • Loading branch information
jeremydw committed Dec 17, 2020
1 parent 673df61 commit d8ada40
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8ada40

Please sign in to comment.