aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-03 14:49:41 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-03 14:49:41 -0500
commitd1415a9e97cda9311181eed9e74daee6a86931d7 (patch)
treeafa5a4ababd863f1280f673c75f8ce046e978841
parent0479d4e7161deea5760b717843cf30b2e7db0a47 (diff)
downloadlite-xl-plugin-manager-d1415a9e97cda9311181eed9e74daee6a86931d7.tar.gz
lite-xl-plugin-manager-d1415a9e97cda9311181eed9e74daee6a86931d7.zip
Made naming conventions consistent.
-rw-r--r--src/lpm.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 5529e01..35b5fc8 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1274,10 +1274,10 @@ end
local function lpm_lite_xl_list()
- local result = { ["lite-xl"] = { } }
+ local result = { ["lite-xls"] = { } }
local max_version = 0
for i,lite_xl in ipairs(lite_xls) do
- table.insert(result["lite-xl"], {
+ table.insert(result["lite-xls"], {
version = lite_xl.version,
mod_version = lite_xl.mod_version,
tags = lite_xl.tags,
@@ -1291,7 +1291,7 @@ local function lpm_lite_xl_list()
for i,repo in ipairs(repositories) do
if not repo.lite_xls then error("can't find lite-xl for repo " .. repo:url()) end
for j, lite_xl in ipairs(repo.lite_xls) do
- table.insert(result["lite-xl"], {
+ table.insert(result["lite-xls"], {
version = lite_xl.version,
mod_version = lite_xl.mod_version,
repository = repo:url(),
@@ -1308,7 +1308,7 @@ local function lpm_lite_xl_list()
io.stdout:write(json.encode(result) .. "\n")
else
if VERBOSE then
- for i, lite_xl in ipairs(result["lite-xl"]) do
+ for i, lite_xl in ipairs(result["lite-xls"]) do
if i ~= 0 then print("---------------------------") end
print("Version: " .. lite_xl.version)
print("Status: " .. lite_xl.status)
@@ -1319,7 +1319,7 @@ local function lpm_lite_xl_list()
max_version = max_version + 2
print(string.format("%" .. max_version .. "s | %10s | %s", "Version", "Status", "Location"))
print(string.format("%" .. max_version .."s | %10s | %s", "-------", "---------", "---------------------------"))
- for i, lite_xl in ipairs(result["lite-xl"]) do
+ for i, lite_xl in ipairs(result["lite-xls"]) do
print(string.format("%" .. max_version .. "s | %10s | %s", (lite_xl.is_system and "* " or "") .. lite_xl.version, lite_xl.status, (lite_xl.is_installed and lite_xl.local_path or lite_xl.repository)))
end
end