From 212708b464c2bdbdd9670c00804623dca0729d2c Mon Sep 17 00:00:00 2001 From: Agando Date: Wed, 27 May 2026 06:00:43 +0200 Subject: auto: 2026-05-27_06:00 changes --- modules/ext/mindmap.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'modules/ext/mindmap.js') diff --git a/modules/ext/mindmap.js b/modules/ext/mindmap.js index 012bae7..30d6889 100644 --- a/modules/ext/mindmap.js +++ b/modules/ext/mindmap.js @@ -43,10 +43,29 @@ class MindmapModule { registerCommands() { const self = this; this.commands['mindmap'] = (args) => { - if (!args[0]) return this.terminal.print('Usage: mindmap [...]', 'warning'); + if (!args[0] || args[0] === '--help' || args[0] === '-h') { + this.terminal.print('Usage: mindmap [...]', 'info'); + this.terminal.print(' new [-t tags] — Create a new mindmap', 'info'); + this.terminal.print(' add [-t tags] — Add a child node', 'info'); + this.terminal.print(' show — Display the mindmap tree', 'info'); + this.terminal.print(' export — Print as indented text', 'info'); + this.terminal.print(' save [name] — Save to VFS', 'info'); + this.terminal.print(' load — Load from VFS', 'info'); + this.terminal.print(' list — List saved mindmaps', 'info'); + this.terminal.print(' delete — Remove a node', 'info'); + this.terminal.print(' rename ', 'info'); + this.terminal.print(' color ', 'info'); + this.terminal.print(' tag [tag1,tag2...]', 'info'); + return; + } const sub = args[0]; const rest = args.slice(1); switch (sub) { + case '--help': + case '-h': + case 'help': + this.terminal.print('Usage: mindmap [...]', 'info'); + return; case 'new': return this._new(rest); case 'add': return this._add(rest); case 'show': return this._show(rest); -- cgit v1.2.3