refactor: use vim.system instead of pleanry (#85)

* refactor!: migrate to vim.system

* refactor(gotests): use vim.system

* refactor(iferr): use vim.system

* refactor(impl): use vim.system

* refactor(installer): use vim.system and add sync mode

* test: fix gotests' tests

* refactor(struct_tags): use vim.system

* chore(ci): install all deps explicitly

* refactor(installer)!: add sync as an option

* docs: update readme
This commit is contained in:
Smirnov Oleksandr 2025-03-02 16:31:50 +02:00 committed by GitHub
parent 837897a79d
commit 6016ca57d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 169 additions and 126 deletions

View file

@ -67,16 +67,12 @@ local function add_test(args)
log.debug("generating tests with args: ", args)
return r.sync(c.commands.gotests, {
args = args,
on_exit = function(data, status)
if not status == 0 then
error("gotests failed: " .. data)
end
local rs = r.sync { c.commands.gotests, unpack(args) }
if rs.code ~= 0 then
error("gotests failed: " .. rs.stderr)
end
u.notify "unit test(s) generated"
end,
})
u.notify "unit test(s) generated"
end
-- generate unit test for one function