mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-14 18:27:44 +02:00
20 lines
344 B
JavaScript
20 lines
344 B
JavaScript
import { BaseCommand } from './base-command.js';
|
|
|
|
class Command extends BaseCommand {
|
|
|
|
usage() {
|
|
return 'version';
|
|
}
|
|
|
|
description() {
|
|
return 'Displays version information';
|
|
}
|
|
|
|
async ction(args) {
|
|
const packageJson = require('./package.json');
|
|
this.log(packageJson.name + ' ' + packageJson.version);
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Command; |