Comparison

plugins/mod_admin_shell.lua @ 12922:aaf055d6fe7a

mod_admin_shell: Show reverse dependencies in module:info() Why was this module loaded? Now you can find out!
author Kim Alvefur <zash@zash.se>
date Sun, 05 Mar 2023 14:08:26 +0100
parent 12908:e96c3ea64996
child 12927:918dfbb330fd
comparison
equal deleted inserted replaced
12921:d238633a9d67 12922:aaf055d6fe7a
573 print(" dependencies:"); 573 print(" dependencies:");
574 for dep in pairs(mod.module.dependencies) do 574 for dep in pairs(mod.module.dependencies) do
575 print(" - mod_" .. dep); 575 print(" - mod_" .. dep);
576 end 576 end
577 end 577 end
578 if mod.module.reverse_dependencies and next(mod.module.reverse_dependencies) ~= nil then
579 print(" reverse dependencies:");
580 for dep in pairs(mod.module.reverse_dependencies) do
581 print(" - mod_" .. dep);
582 end
583 end
578 end 584 end
579 return true; 585 return true;
580 end 586 end
581 587
582 function def_env.module:load(name, hosts) 588 function def_env.module:load(name, hosts)