fix(ci): typing

This commit is contained in:
Barrett Ruth 2025-09-20 13:40:32 -04:00
parent f487b5d006
commit 8df38d0ca8

View file

@ -417,16 +417,16 @@ describe('cp.execute', function()
end end
local execute_command = require('cp.execute').execute_command local execute_command = require('cp.execute').execute_command
or function(cmd, input_data, timeout_ms) or function(command, stdin_data, timeout)
local redirected_cmd = vim.deepcopy(cmd) local redirected_cmd = vim.deepcopy(command)
if #redirected_cmd > 0 then if #redirected_cmd > 0 then
redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1' redirected_cmd[#redirected_cmd] = redirected_cmd[#redirected_cmd] .. ' 2>&1'
end end
local result = vim local result = vim
.system({ 'sh', '-c', table.concat(redirected_cmd, ' ') }, { .system({ 'sh', '-c', table.concat(redirected_cmd, ' ') }, {
stdin = input_data, stdin = stdin_data,
timeout = timeout_ms, timeout = timeout,
text = true, text = true,
}) })
:wait() :wait()