1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Cli: Add support for "batch" command

This commit is contained in:
Laurent Cozic
2021-05-01 16:09:59 +02:00
parent 4be5182913
commit eef86d6166
2 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
const { BaseCommand } = require('./base-command.js');
const { _ } = require('@joplin/lib/locale');
class Command extends BaseCommand {
usage() {
return 'batch <file-path>';
}
description() {
return _('Runs the commands contained in the text file. There should be one command per line.');
}
async action() {
// Implementation is in app.js::commandList()
throw new Error('No implemented');
}
}
module.exports = Command;