1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:30:05 +08:00

feat(job): support detached opt

This commit is contained in:
wsdjeg 2023-07-07 00:21:23 +08:00
parent d4a6d1fae4
commit 9241c6c089

View File

@ -57,7 +57,9 @@ function M.start(cmd, opts)
local opt = {
stdio = { stdin, stdout, stderr },
args = argv,
cwd = opts.cwd or nil
cwd = opts.cwd or nil,
hide = true,
detached = opts.detached or nil
}
_jobid = _jobid + 1
local current_id = _jobid