1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00
joplin/CliClient/app/base-command.js

31 lines
353 B
JavaScript
Raw Normal View History

2017-07-10 22:03:46 +02:00
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 };