2022-11-01 17:28:14 +02:00
|
|
|
const BaseCommand = require('./base-command').default;
|
2020-11-07 17:59:37 +02:00
|
|
|
const { _ } = require('@joplin/lib/locale');
|
2021-08-11 17:23:37 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-09-13 00:16:42 +02:00
|
|
|
async action() {
|
2023-02-08 16:16:09 +02:00
|
|
|
this.stdout(versionInfo(require('./package.json'), {}).message);
|
2017-07-10 22:03:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 09:35:42 +02:00
|
|
|
module.exports = Command;
|