fix(ci): typing
This commit is contained in:
parent
f487b5d006
commit
8df38d0ca8
1 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue