mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-03 08:35:29 +02:00
39 lines
417 B
JavaScript
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 }; |