diff --git a/index.js b/index.js index ae0f046..544c779 100644 --- a/index.js +++ b/index.js @@ -298,12 +298,12 @@ module.exports = class Cli { if (task) { if (STATIC.tasks.list.includes(task)) { - require(`${STATIC.tasks.path}/${task.replace(/:/g, '/')}`)(meowCli); // eslint-disable-line global-require + require(`${STATIC.tasks.path}/${task.replace(/:/g, '/')}`).cli(meowCli); // eslint-disable-line global-require } else { meowCli.showHelp(); } } else { - require(`${STATIC.tasks.path}/default`)(meowCli); // eslint-disable-line global-require + require(`${STATIC.tasks.path}/default`).cli(meowCli); // eslint-disable-line global-require } } diff --git a/package.json b/package.json index f532a54..cbe2c9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@absolunet/cli", - "version": "0.3.0", + "version": "0.4.0", "description": "CLI utilities", "definition": "", "homepage": "https://github.com/absolunet/node-cli", @@ -10,7 +10,7 @@ "repository": { "url": "git://github.com/absolunet/node-cli.git", "type":"git" }, "bugs": { "url": "https://github.com/absolunet/node-cli/issues" }, - "engines": { "node": ">= 7.9.0" }, + "engines": { "node": ">= 7.10.0" }, "scripts": { "test": "mocha" }, @@ -21,7 +21,7 @@ "dependencies": { "chalk": "^1.1.3", - "glob": "^7.1.1", + "glob": "^7.1.2", "indent-string": "^3.1.0", "omelette": "^0.3.2", "read-pkg-up": "^2.0.0",