1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/app-cli/app/command-version.ts

20 lines
453 B
TypeScript
Raw Normal View History

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