aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/lpm.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index b25467d..7e5acb7 100644
--- a/README.md
+++ b/README.md
@@ -117,7 +117,7 @@ CMAKE_DEFAULT_FLAGS="-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER\ -DCMAKE_FIND_ROO
## Tests
-To run the test suite, simply use lua to run `lua t/run.lua`. use `FAST=1 t/run.lua` to avoid the costs of tearing down and building up suites each time.
+To run the test suite, you can use `lpm` to execute the test by doing `./lpm test t/run.lua`. use `FAST=1 ./lpm test t/run.lua` to avoid the costs of tearing down and building up suites each time.
## Bugs
diff --git a/src/lpm.lua b/src/lpm.lua
index 1601bee..3ee5cc1 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1443,8 +1443,8 @@ local function lpm_addon_list(type, id)
io.stdout:write(json.encode(result) .. "\n")
elseif #result.addons > 0 then
if not VERBOSE then
- print(string.format("%" .. max_id .."s | %10s | %10s | %s", "ID", "Version", "ModVer", "Status"))
- print(string.format("%" .. max_id .."s | %10s | %10s | %s", string.rep("-", max_id), "-------", "------", "-----------"))
+ print(string.format("%" .. max_id .."s | %10s | %10s | %10s | %s", "ID", "Version", "Type", "ModVer", "Status"))
+ print(string.format("%" .. max_id .."s | %10s | %10s | %10s | %s", string.rep("-", max_id), "-------", "----", "------", "-----------"))
end
for i, addon in ipairs(common.sort(result.addons, function(a,b) return a.id < b.id end)) do
if VERBOSE then
@@ -1463,7 +1463,7 @@ local function lpm_addon_list(type, id)
print("Tags: " .. common.join(", ", addon.tags))
print("Path: " .. (addon.path or ""))
elseif addon.status ~= "incompatible" then
- print(string.format("%" .. max_id .."s | %10s | %10s | %s", addon.id, addon.version, addon.mod_version, addon.status))
+ print(string.format("%" .. max_id .."s | %10s | %10s | %10s | %s", addon.id, addon.version, addon.type, addon.mod_version or "n/a", addon.status))
end
end
end