mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +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 shell = require('./shell/index');
|
||||||
const dbgateTools = require('dbgate-tools');
|
const dbgateTools = require('dbgate-tools');
|
||||||
|
const currentVersion = require('./currentVersion');
|
||||||
|
|
||||||
global['DBGATE_TOOLS'] = dbgateTools;
|
global['DBGATE_TOOLS'] = dbgateTools;
|
||||||
|
|
||||||
@ -116,6 +117,7 @@ module.exports = {
|
|||||||
...shell,
|
...shell,
|
||||||
getLogger,
|
getLogger,
|
||||||
configureLogger,
|
configureLogger,
|
||||||
|
currentVersion,
|
||||||
// loadLogsContent,
|
// loadLogsContent,
|
||||||
getMainModule: () => require('./main'),
|
getMainModule: () => require('./main'),
|
||||||
};
|
};
|
||||||
|
@ -26,6 +26,8 @@ async function runAndExit(promise) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
program.version(dbgateApi.currentVersion.version);
|
||||||
|
|
||||||
program
|
program
|
||||||
.option('-s, --server <server>', 'server host')
|
.option('-s, --server <server>', 'server host')
|
||||||
.option('-u, --user <user>', 'user name')
|
.option('-u, --user <user>', 'user name')
|
||||||
|
Loading…
Reference in New Issue
Block a user