diff --git a/lib/cli-app.js b/lib/cli-app.js index 941003c..da2b862 100644 --- a/lib/cli-app.js +++ b/lib/cli-app.js @@ -9,8 +9,8 @@ class WsCliApp extends LwsCliApp { super (options) /* override default serve command */ this.commands.add(null, require('./command/serve')) - /* add feature-list command */ - this.commands.add('feature-list', require('./command/feature-list')) + /* add middleware-list command */ + this.commands.add('middleware-list', require('./command/middleware-list')) } } diff --git a/lib/command/feature-list.js b/lib/command/middleware-list.js similarity index 79% rename from lib/command/feature-list.js rename to lib/command/middleware-list.js index 27a4e31..caf2f65 100644 --- a/lib/command/feature-list.js +++ b/lib/command/middleware-list.js @@ -1,6 +1,6 @@ -class FeatureList { +class MiddlewareList { description () { - return 'Print installed features' + return 'Print available middleware' } execute (options) { const list = [ @@ -22,4 +22,4 @@ class FeatureList { } } -module.exports = FeatureList +module.exports = MiddlewareList diff --git a/lib/command/serve.js b/lib/command/serve.js index e03f405..bde4dd4 100644 --- a/lib/command/serve.js +++ b/lib/command/serve.js @@ -54,7 +54,7 @@ class WsServe extends ServeCommand { } showVersion () { - const pkg = require(path.resolve(__dirname, '..', 'package.json')) + const pkg = require(path.resolve(__dirname, '..', '..', 'package.json')) console.log(pkg.version) } }