2023-12-20 21:08:07 +02:00
|
|
|
import BaseCommand from './base-command';
|
2024-01-20 16:29:21 +02:00
|
|
|
import app from './app';
|
2023-12-20 21:08:07 +02:00
|
|
|
import { _ } from '@joplin/lib/locale';
|
2017-10-14 23:44:50 +02:00
|
|
|
|
|
|
|
class Command extends BaseCommand {
|
2023-12-20 21:08:07 +02:00
|
|
|
public override usage() {
|
2017-10-14 23:44:50 +02:00
|
|
|
return 'exit';
|
|
|
|
}
|
|
|
|
|
2023-12-20 21:08:07 +02:00
|
|
|
public override description() {
|
2017-10-14 23:44:50 +02:00
|
|
|
return _('Exits the application.');
|
|
|
|
}
|
|
|
|
|
2023-12-20 21:08:07 +02:00
|
|
|
public override compatibleUis() {
|
2017-12-07 20:12:46 +02:00
|
|
|
return ['gui'];
|
|
|
|
}
|
|
|
|
|
2023-12-20 21:08:07 +02:00
|
|
|
public override async action() {
|
2017-10-14 23:44:50 +02:00
|
|
|
await app().exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 09:35:42 +02:00
|
|
|
module.exports = Command;
|