1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/CliClient/app/command-version.js

20 lines
344 B
JavaScript
Raw Normal View History

2017-07-10 22:03:46 +02:00
import { BaseCommand } from './base-command.js';
class Command extends BaseCommand {
usage() {
return 'version';
}
description() {
return 'Displays version information';
}
async ction(args) {
2017-07-10 20:17:03 +02:00
const packageJson = require('./package.json');
this.log(packageJson.name + ' ' + packageJson.version);
2017-07-10 22:03:46 +02:00
}
}
module.exports = Command;