Documentation
¶
Index ¶
- func CmdSignal(cmd *exec.Cmd, signal os.Signal) error
- func NewCmdAsUser(command string) *exec.Cmd
- type Cmd
- type CmdOption
- type StringCommand
- func (c *StringCommand) Array() []string
- func (c *StringCommand) ArrayOrShell() []string
- func (c *StringCommand) ExecCmdAsUser() *exec.Cmd
- func (c *StringCommand) Flatten() string
- func (c *StringCommand) IsArray() bool
- func (c *StringCommand) IsEmpty() bool
- func (c *StringCommand) MarshalJSON() ([]byte, error)
- func (c *StringCommand) UnmarshalJSON(b []byte) error
- func (c *StringCommand) UnmarshalMapstructure(o interface{}) error
- func (c *StringCommand) UnmarshalYAML(dec func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAsUser ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) Stderr ¶
func (i *Cmd) Stderr() io.ReadCloser
func (*Cmd) Stdout ¶
func (i *Cmd) Stdout() io.ReadCloser
func (*Cmd) WaitChannel ¶
func (i *Cmd) WaitChannel() <-chan struct{}
type StringCommand ¶
type StringCommand struct {
// contains filtered or unexported fields
}
func NewStringCommandFromArray ¶
func NewStringCommandFromArray(s []string) *StringCommand
func NewStringCommandFromString ¶
func NewStringCommandFromString(s string) *StringCommand
func (*StringCommand) Array ¶
func (c *StringCommand) Array() []string
func (*StringCommand) ArrayOrShell ¶
func (c *StringCommand) ArrayOrShell() []string
func (*StringCommand) ExecCmdAsUser ¶
func (c *StringCommand) ExecCmdAsUser() *exec.Cmd
func (*StringCommand) Flatten ¶
func (c *StringCommand) Flatten() string
func (*StringCommand) IsArray ¶
func (c *StringCommand) IsArray() bool
func (*StringCommand) IsEmpty ¶
func (c *StringCommand) IsEmpty() bool
func (*StringCommand) MarshalJSON ¶
func (c *StringCommand) MarshalJSON() ([]byte, error)
func (*StringCommand) UnmarshalJSON ¶
func (c *StringCommand) UnmarshalJSON(b []byte) error
func (*StringCommand) UnmarshalMapstructure ¶
func (c *StringCommand) UnmarshalMapstructure(o interface{}) error
func (*StringCommand) UnmarshalYAML ¶
func (c *StringCommand) UnmarshalYAML(dec func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.