Documentation ¶
Overview ¶
Package command provides a relatively thin wrapper around exec.Cmd, adding support for communicating with the dependent process using a channel.Channel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is a wrapper around exec.Cmd which adds needed operations which are os specific. Notably, it knows how to attach a channel.Channel.
func (*Command) AddEnvVar ¶
AddEnvVar passes the given environment variable to the process.
The environment variables are passed when the process is spawned, so this method should only be called before .Start is called.
The argument kv is a key value pair in the form "key=value".
func (*Command) SetupCommsChannel ¶
SetupCommsChannel prepares a daemonServiceCommand to communicate with a DaemonService locally over an interprocess pipe.