local function get_all_list(key_string)
local table_list={}
local all_services = skynet.call(".launcher", "lua", "LIST")
local count = 0
for k,v in pairs(all_services) do
if string.match(k, key_string) or string.match(v, key_string) then
table_list[k] = v
count = count + 1
end
end
table_list["total_count"] = count
return table_list
end
function COMMAND.ag(key_string)
if key_string == nil then
skynet.error("ag nil string:")
return nil
end
skynet.error("ag:",key_string)
return get_all_list(key_string)
end