aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-14 12:26:00 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-14 12:26:00 -0500
commit7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f (patch)
treee0b90c8c5691d6cc38ef533e165e29fa191015d2 /src/lpm.lua
parent17ce7c5ee47b4febde65d571993d4c963d85fcc1 (diff)
downloadlite-xl-plugin-manager-7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f.tar.gz
lite-xl-plugin-manager-7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f.zip
Added in addon type.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua6
1 files changed, 3 insertions, 3 deletions
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