--version

This commit is contained in:
Lloyd Brookes
2017-06-10 23:27:10 +01:00
parent b7289201e1
commit 498ee868c0
3 changed files with 884 additions and 1357 deletions

View File

@ -54,6 +54,11 @@ class WsServe extends Serve {
})
return sections
}
showVersion () {
const pkg = require(path.resolve(__dirname, '..', 'package.json'))
console.log(pkg.version)
}
}
/**
@ -67,11 +72,6 @@ class LocalWebServer extends Lws {
/* add feature-list command */
this.commands.add('feature-list', require('./feature-list'))
}
getVersion () {
const pkg = require(path.resolve(__dirname, '..', 'package.json'))
return pkg.version
}
}
module.exports = LocalWebServer