mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +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 }; |