Comparison

plugins/mod_admin_shell.lua @ 11603:4e24408a3f57

mod_admin_shell: module:info: List dependencies
author Kim Alvefur <zash@zash.se>
date Sat, 12 Jun 2021 16:40:40 +0200
parent 11602:78ec0741c2bc
child 11604:7466bf65d7c8
comparison
equal deleted inserted replaced
11602:78ec0741c2bc 11603:4e24408a3f57
418 end 418 end
419 print(" path: " .. (mod.module.path or "n/a")); 419 print(" path: " .. (mod.module.path or "n/a"));
420 if mod.module.status_message then 420 if mod.module.status_message then
421 print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message); 421 print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
422 end 422 end
423 if mod.module.dependencies and next(mod.module.dependencies) ~= nil then
424 print(" dependencies:");
425 for dep in pairs(mod.module.dependencies) do
426 print(" - mod_" .. dep);
427 end
428 end
423 end 429 end
424 return true; 430 return true;
425 end 431 end
426 432
427 function def_env.module:load(name, hosts, config) 433 function def_env.module:load(name, hosts, config)