joplin/CliClient/app/base-command.js

35 lines
385 B
JavaScript
Raw Normal View History

2017-07-10 20:03:46 +00: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 [];
}
2017-07-18 18:21:03 +00:00
hidden() {
return false;
}
2017-07-10 20:03:46 +00:00
async cancel() {}
}
export { BaseCommand };