This commit is contained in:
Arwid Thornström
2022-01-19 09:17:55 +01:00
parent 7f934532e9
commit 19b15a585c
8 changed files with 27 additions and 49 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
const { build } = require('gluegun');
const { build } = require('gluegun')
/**
* Create the cli and kick it off
@@ -21,15 +21,15 @@ async function run(argv) {
run: toolbox => toolbox.print.info('No help for you!')
}) // provides default for help, h, --help, -h
.version() // provides default for version, v, --version, -v
.create();
.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 }