diff options
| author | Agando <roduccomm@gmail.com> | 2026-05-27 06:00:43 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-05-27 06:00:43 +0200 |
| commit | 212708b464c2bdbdd9670c00804623dca0729d2c (patch) | |
| tree | ee190cbb0d1524350baea641df65aa19817744b5 /modules/ext/mindmap.js | |
| parent | f4d934d341056142da1212c845eeeb170fd452c2 (diff) | |
auto: 2026-05-27_06:00 changes
Diffstat (limited to 'modules/ext/mindmap.js')
| -rw-r--r-- | modules/ext/mindmap.js | 21 |
1 files changed, 20 insertions, 1 deletions
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 <new|add|show|export|save|load|list|delete|rename|color|tag> [...]', 'warning'); + if (!args[0] || args[0] === '--help' || args[0] === '-h') { + this.terminal.print('Usage: mindmap <new|add|show|export|save|load|list|delete|rename|color|tag> [...]', 'info'); + this.terminal.print(' new <topic> [-t tags] — Create a new mindmap', 'info'); + this.terminal.print(' add <parent-id> <text> [-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 <name> — Load from VFS', 'info'); + this.terminal.print(' list — List saved mindmaps', 'info'); + this.terminal.print(' delete <id> — Remove a node', 'info'); + this.terminal.print(' rename <id> <new-text>', 'info'); + this.terminal.print(' color <id> <color>', 'info'); + this.terminal.print(' tag <id> [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 <new|add|show|export|save|load|list|delete|rename|color|tag> [...]', 'info'); + return; case 'new': return this._new(rest); case 'add': return this._add(rest); case 'show': return this._show(rest); |