style: reformat all lua code

This commit is contained in:
Smirnov Oleksandr 2022-07-07 14:09:48 +03:00
parent 4fee3543e0
commit 4b83da6d7f
8 changed files with 84 additions and 102 deletions

View file

@ -10,20 +10,18 @@ local urls = {
local function install(pkg)
local url = urls[pkg] .. "@latest"
Job
:new({
command = "go",
args = { "install", url },
on_exit = function(_, retval)
if retval ~= 0 then
u.notify("command 'go install " .. url .. "' exited with code " .. retval, "error")
return
end
Job:new({
command = "go",
args = { "install", url },
on_exit = function(_, retval)
if retval ~= 0 then
u.notify("command 'go install " .. url .. "' exited with code " .. retval, "error")
return
end
u.notify("install " .. url .. " finished", "info ")
end,
})
:start()
u.notify("install " .. url .. " finished", "info ")
end,
}):start()
end
---Install required go deps