1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/CliClient/app/command-version.js
2017-07-11 00:17:03 +01:00

22 lines
430 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.log(_('%s %s (%s)', p.name, p.version, Setting.value('env')));
}
}
module.exports = Command;