diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-14 12:26:00 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-14 12:26:00 -0500 |
commit | 7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f (patch) | |
tree | e0b90c8c5691d6cc38ef533e165e29fa191015d2 | |
parent | 17ce7c5ee47b4febde65d571993d4c963d85fcc1 (diff) | |
download | lite-xl-plugin-manager-7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f.tar.gz lite-xl-plugin-manager-7aa6e9c2a7ac1a2773f1a12295b22bfebd52159f.zip |
Added in addon type.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/lpm.lua | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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 |