aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-04-05 14:36:58 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-04-05 14:36:58 -0400
commit0a2e8ec15e77eaf30dd5811104362750bde502f3 (patch)
treee46df09cbb36ff3cd1f3abdf45a91fde41ab5924 /src/lpm.lua
parentc2815d0fa63ac1ace4b0837be5ad8926656a6d62 (diff)
parent411825175667285b39cc54cfe0efd26105c92520 (diff)
downloadlite-xl-plugin-manager-0a2e8ec15e77eaf30dd5811104362750bde502f3.tar.gz
lite-xl-plugin-manager-0a2e8ec15e77eaf30dd5811104362750bde502f3.zip
Merge branch 'master' of github.com:adamharrison/lite-xl-plugin-manager
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index cb08fef..a4cb851 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -2178,6 +2178,8 @@ function lpm.run(ARGS)
error("unknown command: " .. ARGS[2])
elseif result == true and JSON then
io.stdout:write(json.encode({ actions = actions, warnings = warnings }))
+ elseif type(result) == "function" then
+ return result
end
end