diff options
| author | Agando <roduccomm@gmail.com> | 2026-06-01 06:00:39 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-06-01 06:00:39 +0200 |
| commit | 6aed9c9e0252b0c8f681a358e5a8707271454137 (patch) | |
| tree | 332a29a515c87c2295355cf81f18b818cfbaa846 /modules/ext | |
| parent | 7cc82d2d32e44ab1c5b7d042d5522d036d9aa0be (diff) | |
auto: 2026-06-01_06:00 changes
Diffstat (limited to 'modules/ext')
| -rw-r--r-- | modules/ext/busybox.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/ext/busybox.js b/modules/ext/busybox.js index 709324f..34221f8 100644 --- a/modules/ext/busybox.js +++ b/modules/ext/busybox.js @@ -57,8 +57,12 @@ class BusyBoxModule { const keys = Object.keys(all); if (all[query]) { - const mod = this.terminal.moduleManager._findModuleForCommand(query); - const src = mod ? ` (from ${mod.constructor.name})` : ''; + let foundMod = null; + for (const modName in this.terminal.moduleManager.modules) { + const mod = this.terminal.moduleManager.modules[modName]; + if (mod.commands && mod.commands[query]) { foundMod = mod; break; } + } + const src = foundMod ? ` (from ${foundMod.constructor.name})` : ''; return this.terminal.print(`${query}${src}`, 'info'); } |