Skip to content

Commit

Permalink
feat: version stdin command (closes #402)
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed May 23, 2023
1 parent f8450af commit 1992ff6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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);
}
};

0 comments on commit 1992ff6

Please sign in to comment.