1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Cleaned up commands and enable only relevant ones in CLI mode

This commit is contained in:
Laurent Cozic
2017-10-24 22:37:36 +01:00
parent 89d85541ef
commit 372b70270d
14 changed files with 54 additions and 12 deletions

View File

@@ -20,6 +20,14 @@ class BaseCommand {
throw new Error('Action not defined');
}
compatibleUis() {
return ['cli', 'gui'];
}
supportsUi(ui) {
return this.compatibleUis().indexOf(ui) >= 0;
}
aliases() {
return [];
}