add "about" to scripts

you can get a description if you send a request where in params there is a field about with any content
This commit is contained in:
2025-07-30 18:32:38 +03:00
parent 166c8470d4
commit 6d2bf5cdd2
3 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,15 @@
-- com/List.lua
if In.Params and In.Params.about then
Out.Result = {
description = "Returns a list of available methods",
params = {
layer = "select which layer list to display"
}
}
return
end
local function isValidCommand(name)
return name:match("^[%w]+$") ~= nil
end