diff --git a/src/stdin/version.js b/src/stdin/version.js new file mode 100644 index 0000000..d857b72 --- /dev/null +++ b/src/stdin/version.js @@ -0,0 +1,17 @@ +const { StdinCommand } = require('@eartharoid/dbf'); +const { version } = require('../../package.json'); +const checkForUpdates = require('../lib/updates'); + +module.exports = class extends StdinCommand { + constructor(client, options) { + super(client, { + ...options, + id: 'version', + }); + } + + async run() { + this.client.log.info('Current version:', version); + checkForUpdates(this.client); + } +};