aboutsummaryrefslogtreecommitdiff
path: root/modules/ext/busybox.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ext/busybox.js')
-rw-r--r--modules/ext/busybox.js8
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');
}