mirror of
https://github.com/dbgate/dbgate
synced 2024-11-23 00:43:10 +00:00
--version in dbmodel
This commit is contained in:
parent
0c12dcaf16
commit
a8999855bf
@ -98,6 +98,7 @@ if (processArgs.listenApi) {
|
||||
|
||||
const shell = require('./shell/index');
|
||||
const dbgateTools = require('dbgate-tools');
|
||||
const currentVersion = require('./currentVersion');
|
||||
|
||||
global['DBGATE_TOOLS'] = dbgateTools;
|
||||
|
||||
@ -116,6 +117,7 @@ module.exports = {
|
||||
...shell,
|
||||
getLogger,
|
||||
configureLogger,
|
||||
currentVersion,
|
||||
// loadLogsContent,
|
||||
getMainModule: () => require('./main'),
|
||||
};
|
||||
|
@ -26,6 +26,8 @@ async function runAndExit(promise) {
|
||||
}
|
||||
}
|
||||
|
||||
program.version(dbgateApi.currentVersion.version);
|
||||
|
||||
program
|
||||
.option('-s, --server <server>', 'server host')
|
||||
.option('-u, --user <user>', 'user name')
|
||||
|
Loading…
Reference in New Issue
Block a user