added arguments to shortcut and removed installer.lua as it was unnecessary

This commit is contained in:
2024-02-23 17:16:35 +01:00
parent bc539f13b6
commit f8508b9d80
4 changed files with 24 additions and 37 deletions

View File

@@ -1 +1,20 @@
dofile("/home/PowerManager/main.lua")
local args = {...}
local helpText = "This is a tool for displaying and managing your Power cells and generators."
if #args<1 then
dofile("/usr/PowerManager/main.lua")
return
end
if args[1] == "-h" then
print(helpText)
return
elseif args[1] == "update" then
dofile("/usr/PowerManager/updater.lua")
return
else
print('"'..args[1]..'" - Bad argument. you can use: powerman update')
print(helpText)
return
end