style: reformat all lua code
This commit is contained in:
parent
4fee3543e0
commit
4b83da6d7f
8 changed files with 84 additions and 102 deletions
|
|
@ -6,20 +6,18 @@ local M = {}
|
|||
|
||||
---@param cmd_args table
|
||||
local function run(cmd_args)
|
||||
Job
|
||||
:new({
|
||||
command = c.gotests,
|
||||
args = cmd_args,
|
||||
on_exit = function(_, retval)
|
||||
if retval ~= 0 then
|
||||
u.notify("command 'go " .. unpack(cmd_args) .. "' exited with code " .. retval, "error")
|
||||
return
|
||||
end
|
||||
Job:new({
|
||||
command = c.gotests,
|
||||
args = cmd_args,
|
||||
on_exit = function(_, retval)
|
||||
if retval ~= 0 then
|
||||
u.notify("command 'go " .. unpack(cmd_args) .. "' exited with code " .. retval, "error")
|
||||
return
|
||||
end
|
||||
|
||||
u.notify("unit test(s) generated", "info")
|
||||
end,
|
||||
})
|
||||
:start()
|
||||
u.notify("unit test(s) generated", "info")
|
||||
end,
|
||||
}):start()
|
||||
end
|
||||
|
||||
---@param args table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue