2017-11-03 00:09:34 +00:00
|
|
|
const { BaseCommand } = require('./base-command.js');
|
|
|
|
const { app } = require('./app.js');
|
|
|
|
const { _ } = require('lib/locale.js');
|
2017-10-14 21:44:50 +00:00
|
|
|
|
|
|
|
class Command extends BaseCommand {
|
|
|
|
usage() {
|
|
|
|
return 'exit';
|
|
|
|
}
|
|
|
|
|
|
|
|
description() {
|
|
|
|
return _('Exits the application.');
|
|
|
|
}
|
|
|
|
|
2017-12-07 18:12:46 +00:00
|
|
|
compatibleUis() {
|
|
|
|
return ['gui'];
|
|
|
|
}
|
|
|
|
|
2019-09-12 22:16:42 +00:00
|
|
|
async action() {
|
2017-10-14 21:44:50 +00:00
|
|
|
await app().exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 07:35:42 +00:00
|
|
|
module.exports = Command;
|