commandpipe

package
v1.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Buffer bytes.Buffer
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(command string, args ...string) *Command

func (*Command) Execute

func (c *Command) Execute() ([]byte, error)

run the process without using stdin and receive the response

func (*Command) WriteToStdin

func (c *Command) WriteToStdin(data []byte) ([]byte, error)

write data to stdin of process and receive the response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL