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

20 lines
453 B
TypeScript

import BaseCommand from './base-command';
const { _ } = require('@joplin/lib/locale');
const versionInfo = require('@joplin/lib/versionInfo').default;
class Command extends BaseCommand {
public override usage() {
return 'version';
}
public override description() {
return _('Displays version information');
}
public override async action() {
this.stdout(versionInfo(require('./package.json'), {}).message);
}
}
module.exports = Command;