1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-03 08:35:29 +02:00
joplin/CliClient/app/base-command.js
2017-07-18 23:14:20 +01:00

39 lines
417 B
JavaScript

class BaseCommand {
usage() {
throw new Error('Usage not defined');
}
description() {
throw new Error('Description not defined');
}
async action(args) {
throw new Error('Action not defined');
}
aliases() {
return [];
}
autocomplete() {
return null;
}
options() {
return [];
}
hidden() {
return false;
}
enabled() {
return true;
}
async cancel() {}
}
export { BaseCommand };