mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
20 lines
418 B
JavaScript
20 lines
418 B
JavaScript
const BaseCommand = require('./base-command').default;
|
|
const { _ } = require('@joplin/lib/locale');
|
|
const versionInfo = require('@joplin/lib/versionInfo').default;
|
|
|
|
class Command extends BaseCommand {
|
|
usage() {
|
|
return 'version';
|
|
}
|
|
|
|
description() {
|
|
return _('Displays version information');
|
|
}
|
|
|
|
async action() {
|
|
this.stdout(versionInfo(require('./package.json'), {}).message);
|
|
}
|
|
}
|
|
|
|
module.exports = Command;
|