You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-24 23:26:50 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
23
packages/app-cli/app/command-exit.js
Normal file
23
packages/app-cli/app/command-exit.js
Normal file
@ -0,0 +1,23 @@
|
||||
const { BaseCommand } = require('./base-command.js');
|
||||
const { app } = require('./app.js');
|
||||
const { _ } = require('@joplinapp/lib/locale');
|
||||
|
||||
class Command extends BaseCommand {
|
||||
usage() {
|
||||
return 'exit';
|
||||
}
|
||||
|
||||
description() {
|
||||
return _('Exits the application.');
|
||||
}
|
||||
|
||||
compatibleUis() {
|
||||
return ['gui'];
|
||||
}
|
||||
|
||||
async action() {
|
||||
await app().exit();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Command;
|
Reference in New Issue
Block a user