Documentation ¶
Index ¶
- type Command
- func (cmd *Command) LogValue() slog.Value
- func (cmd *Command) Run() error
- func (cmd *Command) RunOutput() (string, string, error)
- func (cmd *Command) RunStderr() (string, error)
- func (cmd *Command) RunStdout() (string, error)
- func (cmd *Command) Start() error
- func (cmd *Command) StderrPipe() (io.ReadCloser, error)
- func (cmd *Command) StdoutPipe() (io.ReadCloser, error)
- type Commander
- type Executable
- type OverrideableWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) RunOutput ¶
RunOutput runs the command and returns both its standard output and standard error as a trimmed string.
func (*Command) RunStderr ¶
RunStderr runs the command and returns its standard error as a trimmed string.
func (*Command) RunStdout ¶
RunStdout runs the command and returns its standard output as a trimmed string.
func (*Command) StderrPipe ¶
func (cmd *Command) StderrPipe() (io.ReadCloser, error)
func (*Command) StdoutPipe ¶
func (cmd *Command) StdoutPipe() (io.ReadCloser, error)
type OverrideableWriter ¶
type OverrideableWriter interface {
// contains filtered or unexported methods
}
OverrideableWriter can be used to indicate that values in Command.Stdout and Command.Stderr are safe to override when requested.
Click to show internal directories.
Click to hide internal directories.