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