Software /
code /
prosody
Comparison
prosodyctl @ 7250:6ffc9247417a
prosodyctl: Use already sorted array of module names [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Mar 2016 12:15:39 +0100 |
parent | 7249:c49f69bb68f7 |
child | 7251:b74421fe417a |
child | 7252:fa0169cc8511 |
comparison
equal
deleted
inserted
replaced
7249:c49f69bb68f7 | 7250:6ffc9247417a |
---|---|
592 end | 592 end |
593 if luaevent then | 593 if luaevent then |
594 module_versions["libevent"] = luaevent.core.libevent_version(); | 594 module_versions["libevent"] = luaevent.core.libevent_version(); |
595 end | 595 end |
596 local sorted_keys = array.collect(keys(module_versions)):sort(); | 596 local sorted_keys = array.collect(keys(module_versions)):sort(); |
597 for _, name in ipairs(array.collect(keys(module_versions)):sort()) do | 597 for _, name in ipairs(sorted_keys) do |
598 print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]); | 598 print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]); |
599 end | 599 end |
600 print(""); | 600 print(""); |
601 end | 601 end |
602 | 602 |