mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-15 09:04:04 +02:00
22 lines
436 B
JavaScript
22 lines
436 B
JavaScript
import { BaseCommand } from './base-command.js';
|
|
import { Setting } from 'lib/models/setting.js'
|
|
import { _ } from 'lib/locale.js';
|
|
|
|
class Command extends BaseCommand {
|
|
|
|
usage() {
|
|
return 'version';
|
|
}
|
|
|
|
description() {
|
|
return _('Displays version information');
|
|
}
|
|
|
|
async action(args) {
|
|
const p = require('./package.json');
|
|
this.stdout(_('%s %s (%s)', p.name, p.version, Setting.value('env')));
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Command; |