mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
31 lines
353 B
JavaScript
31 lines
353 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 [];
|
|
}
|
|
|
|
async cancel() {}
|
|
|
|
}
|
|
|
|
export { BaseCommand }; |