You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how much spread is this need. In my specific case, I need to access the underlying exec.Cmd that is built in buildCmd without starting it. Currently, all the exposed functions that return icmd.Result already started the underlying exec.Cmd.
In case you wonder why I need to do this, here's some context. I need to test an interactive REPL, so I'm using this. The entrypoint of pty is this function:
func Start(c *exec.Cmd) (pty *os.File, err error)
so I'd like to do something like:
r := icmd.BuildCmd(cmd)
in, err := pty.Start(r.Cmd)
The text was updated successfully, but these errors were encountered:
I don't know how much spread is this need. In my specific case, I need to access the underlying
exec.Cmd
that is built inbuildCmd
without starting it. Currently, all the exposed functions that returnicmd.Result
already started the underlyingexec.Cmd
.In case you wonder why I need to do this, here's some context. I need to test an interactive REPL, so I'm using this. The entrypoint of
pty
is this function:so I'd like to do something like:
The text was updated successfully, but these errors were encountered: