1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/packages/app-cli/app/command-version.js

20 lines
418 B
JavaScript
Raw Normal View History

const BaseCommand = require('./base-command').default;
const { _ } = require('@joplin/lib/locale');
const versionInfo = require('@joplin/lib/versionInfo').default;
2017-07-10 22:03:46 +02:00
class Command extends BaseCommand {
usage() {
return 'version';
}
description() {
2017-07-18 20:21:03 +02:00
return _('Displays version information');
2017-07-10 22:03:46 +02:00
}
async action() {
this.stdout(versionInfo(require('./package.json'), {}).message);
2017-07-10 22:03:46 +02:00
}
}
module.exports = Command;