rename feature-list to middleware-list.. fix --version
This commit is contained in:
@ -9,8 +9,8 @@ class WsCliApp extends LwsCliApp {
|
|||||||
super (options)
|
super (options)
|
||||||
/* override default serve command */
|
/* override default serve command */
|
||||||
this.commands.add(null, require('./command/serve'))
|
this.commands.add(null, require('./command/serve'))
|
||||||
/* add feature-list command */
|
/* add middleware-list command */
|
||||||
this.commands.add('feature-list', require('./command/feature-list'))
|
this.commands.add('middleware-list', require('./command/middleware-list'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class FeatureList {
|
class MiddlewareList {
|
||||||
description () {
|
description () {
|
||||||
return 'Print installed features'
|
return 'Print available middleware'
|
||||||
}
|
}
|
||||||
execute (options) {
|
execute (options) {
|
||||||
const list = [
|
const list = [
|
||||||
@ -22,4 +22,4 @@ class FeatureList {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = FeatureList
|
module.exports = MiddlewareList
|
@ -54,7 +54,7 @@ class WsServe extends ServeCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showVersion () {
|
showVersion () {
|
||||||
const pkg = require(path.resolve(__dirname, '..', 'package.json'))
|
const pkg = require(path.resolve(__dirname, '..', '..', 'package.json'))
|
||||||
console.log(pkg.version)
|
console.log(pkg.version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user