1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-09 08:45:55 +02:00
joplin/CliClient/app/base-command.js

39 lines
417 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 [];
}
2017-07-18 20:21:03 +02:00
hidden() {
return false;
}
2017-07-19 00:14:20 +02:00
enabled() {
return true;
}
2017-07-10 22:03:46 +02:00
async cancel() {}
}
export { BaseCommand };