Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 11605:225ef07f2bee
mod_admin_shell: module:info: List provided 'items'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 12 Jun 2021 17:49:44 +0200 |
parent | 11604:7466bf65d7c8 |
child | 11606:0b65d43f4da4 |
comparison
equal
deleted
inserted
replaced
11604:7466bf65d7c8 | 11605:225ef07f2bee |
---|---|
412 end | 412 end |
413 print(" path: " .. (mod.module.path or "n/a")); | 413 print(" path: " .. (mod.module.path or "n/a")); |
414 if mod.module.status_message then | 414 if mod.module.status_message then |
415 print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message); | 415 print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message); |
416 end | 416 end |
417 if mod.module.items and next(mod.module.items) ~= nil then | |
418 print(" provides:"); | |
419 for kind, items in pairs(mod.module.items) do | |
420 print(string.format(" - %s (%d item%s)", kind, #items, #items > 1 and "s" or "")); | |
421 end | |
422 end | |
417 if mod.module.dependencies and next(mod.module.dependencies) ~= nil then | 423 if mod.module.dependencies and next(mod.module.dependencies) ~= nil then |
418 print(" dependencies:"); | 424 print(" dependencies:"); |
419 for dep in pairs(mod.module.dependencies) do | 425 for dep in pairs(mod.module.dependencies) do |
420 print(" - mod_" .. dep); | 426 print(" - mod_" .. dep); |
421 end | 427 end |