Changeset

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
parents 11604:7466bf65d7c8
children 11606:0b65d43f4da4
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Sat Jun 12 16:47:30 2021 +0200
+++ b/plugins/mod_admin_shell.lua	Sat Jun 12 17:49:44 2021 +0200
@@ -414,6 +414,12 @@
 		if mod.module.status_message then
 			print("  status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
 		end
+		if mod.module.items and next(mod.module.items) ~= nil then
+			print("  provides:");
+			for kind, items in pairs(mod.module.items) do
+				print(string.format("  - %s (%d item%s)", kind, #items, #items > 1 and "s" or ""));
+			end
+		end
 		if mod.module.dependencies and next(mod.module.dependencies) ~= nil then
 			print("  dependencies:");
 			for dep in pairs(mod.module.dependencies) do