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
Really enjoying using script however there have been a couple of use cases where I have wanted to avoid interpolating the Exec args into a single cmdLIne (and worrying about quoting - which can be complex if dealing with arbitrary input) - it would be useful to add an Execv(cmd string, args []string) method which passes the cmd and args separately as []string (which is what gets passed to exec.Command anyway so saves re-parsing the command line).
Really enjoying using script however there have been a couple of use cases where I have wanted to avoid interpolating the
Exec
args into a single cmdLIne (and worrying about quoting - which can be complex if dealing with arbitrary input) - it would be useful to add anExecv(cmd string, args []string)
method which passes the cmd and args separately as []string (which is what gets passed to exec.Command anyway so saves re-parsing the command line).I've added an example implementation in #189
The text was updated successfully, but these errors were encountered: