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
424 B
TypeScript
Raw Normal View History

import BaseCommand from './base-command';
const { app } = require('./app.js');
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;