From e1d1be0068891c7815588ec27ce07c828ec7e04c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 13 Oct 2021 20:46:04 +0200 Subject: mod_admin_shell: Show HTTP base-URLs in module:info() Because it's nice, not having to find it in http:list(), which could have a lot of items. --- plugins/mod_admin_shell.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index d44f4635..5e675e93 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -420,6 +420,7 @@ function def_env.module:info(name, hosts) ["adhoc-provider"] = function(item) return item.name; end, ["auth-provider"] = function(item) return item.name; end, ["storage-provider"] = function(item) return item.name; end, + ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, }; for host in hosts do @@ -441,7 +442,7 @@ function def_env.module:info(name, hosts) local formatter = item_formatters[kind]; if formatter then for _, item in ipairs(items) do - print(" - " .. formatter(item)); + print(" - " .. formatter(item, mod.module)); end end end -- cgit v1.2.3