There was an error while loading. Please reload this page.
1 parent d46c3aa commit 6d259c8Copy full SHA for 6d259c8
client.go
@@ -85,6 +85,8 @@ func StartClientRaw(opts ClientRawOptions) (*ClientRaw, error) {
85
}
86
cmd.Env = env
87
88
+ cmd.Dir = opts.Dir
89
+
90
conn, err := newConn(cmd, opts.Timeout)
91
if err != nil {
92
return nil, err
@@ -280,6 +282,11 @@ type ClientRawOptions struct {
280
282
// A slice of strings of the form "key=value"
281
283
Env []string
284
285
+ // Dir specifies the working directory of the command.
286
+ // If Dir is the empty string, the command runs in the
287
+ // calling process's current directory.
288
+ Dir string
289
290
// Callback for messages received from server without an ID (e.g. log message).
291
OnMessage func(Message)
292
0 commit comments