aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-11-29 21:32:16 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-11-29 21:32:16 -0500
commitecadad5a5ba468e7c31b289ec174db6f1fc50244 (patch)
treebeb222cd85dff95bcc9492c249e6d8034b6b1425 /src/lpm.lua
parent22829670c43ab1bc191da9f8bc856e4487f4b52e (diff)
downloadlite-xl-plugin-manager-ecadad5a5ba468e7c31b289ec174db6f1fc50244.tar.gz
lite-xl-plugin-manager-ecadad5a5ba468e7c31b289ec174db6f1fc50244.zip
Potentially got things working.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 02738a8..c1c9ab9 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1628,10 +1628,14 @@ Flags have the following effects:
end
if ARGS[2] == "download" then
- local file = common.get("https://raw.githubusercontent.com/adamharrison/lite-xl-simplified/master/manifest.json");
+ local file = common.get(ARGS[3]);
print(file)
os.exit(0)
end
+ if ARGS[2] == "extract" then
+ system.extract(ARGS[3], ARGS[4] or ".")
+ os.exit(0)
+ end
-- Base setup; initialize default repos if applicable, read them in. Determine Lite XL system binary if not specified, and pull in a list of all local lite-xl's.