This commit is contained in:
Arwid Thornström
2022-01-21 13:34:56 +01:00
parent b4d3f789cf
commit fda1b42e9f
11 changed files with 43 additions and 29 deletions
+8 -6
View File
@@ -15,21 +15,23 @@ async function run(argv) {
})
.help({
name: 'help',
alias: 'helpmeplease',
hidden: true,
alias: 'h',
hidden: false,
dashed: true,
run: toolbox => toolbox.print.info('No help for you!')
run: toolbox => {
toolbox.print.info('This is the help');
}
}) // provides default for help, h, --help, -h
.version() // provides default for version, v, --version, -v
// .version() // provides default for version, v, --version, -v
.create()
// enable the following method if you'd like to skip loading one of these core extensions
// this can improve performance if they're not necessary for your project:
// .exclude(['meta', 'strings', 'print', 'filesystem', 'semver', 'system', 'prompt', 'http', 'template', 'patching', 'package-manager'])
// and run it
const toolbox = await cli.run(argv)
const toolbox = await cli.run(argv);
// send it back (for testing, mostly)
return toolbox
return toolbox;
}
module.exports = { run }