1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/CliClient/app/base-command.js
2017-07-10 20:03:46 +00:00

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 };