mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
24 lines
424 B
TypeScript
24 lines
424 B
TypeScript
import BaseCommand from './base-command';
|
|
const { app } = require('./app.js');
|
|
import { _ } from '@joplin/lib/locale';
|
|
|
|
class Command extends BaseCommand {
|
|
public override usage() {
|
|
return 'exit';
|
|
}
|
|
|
|
public override description() {
|
|
return _('Exits the application.');
|
|
}
|
|
|
|
public override compatibleUis() {
|
|
return ['gui'];
|
|
}
|
|
|
|
public override async action() {
|
|
await app().exit();
|
|
}
|
|
}
|
|
|
|
module.exports = Command;
|