1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/app-cli/app/command-exit.ts

24 lines
412 B
TypeScript
Raw Normal View History

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