Changeset

11603:4e24408a3f57

mod_admin_shell: module:info: List dependencies
author Kim Alvefur <zash@zash.se>
date Sat, 12 Jun 2021 16:40:40 +0200
parents 11602:78ec0741c2bc
children 11604:7466bf65d7c8
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:40:22 2021 +0200
+++ b/plugins/mod_admin_shell.lua	Sat Jun 12 16:40:40 2021 +0200
@@ -420,6 +420,12 @@
 		if mod.module.status_message then
 			print("  status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
 		end
+		if mod.module.dependencies and next(mod.module.dependencies) ~= nil then
+			print("  dependencies:");
+			for dep in pairs(mod.module.dependencies) do
+				print("  - mod_" .. dep);
+			end
+		end
 	end
 	return true;
 end