mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
20 lines
453 B
TypeScript
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;
|