mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
CLI: Disable support for HTML export for now as it does not work
This commit is contained in:
parent
0b6f5581f0
commit
b1bb470b0a
@ -17,7 +17,7 @@ class Command extends BaseCommand {
|
||||
const service = new InteropService();
|
||||
const formats = service
|
||||
.modules()
|
||||
.filter((m) => m.type === 'exporter')
|
||||
.filter((m) => m.type === 'exporter' && m.format !== 'html')
|
||||
.map((m) => m.format + (m.description ? ` (${m.description})` : ''));
|
||||
|
||||
return [['--format <format>', _('Destination format: %s', formats.join(', '))], ['--note <note>', _('Exports only the given note.')], ['--notebook <notebook>', _('Exports only the given notebook.')]];
|
||||
@ -29,6 +29,8 @@ class Command extends BaseCommand {
|
||||
|
||||
exportOptions.format = args.options.format ? args.options.format : 'jex';
|
||||
|
||||
if (exportOptions.format === 'html') throw new Error('HTML export is not supported. Please use the desktop application.');
|
||||
|
||||
if (args.options.note) {
|
||||
const notes = await app().loadItems(BaseModel.TYPE_NOTE, args.options.note, { parent: app().currentFolder() });
|
||||
if (!notes.length) throw new Error(_('Cannot find "%s".', args.options.note));
|
||||
|
Loading…
Reference in New Issue
Block a user