internal

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStd

func SetStd(sh Shared, cmd *exec.Cmd)

Types

type Shared

type Shared struct {
	Input    string
	Path     string
	PathConf struct {
		Enabled bool
		Path    string // It's the same as Cmd.Path
	}

	CStd struct {
		Enabled bool
		Stdin   bool
		Stderr  bool
		Stdout  bool
	}
}

func (*Shared) SetInput

func (sh *Shared) SetInput(input string)

func (*Shared) SetInputf

func (sh *Shared) SetInputf(input string, args ...any)

func (*Shared) SetPath

func (sh *Shared) SetPath(path string)

func (*Shared) SetPathf

func (sh *Shared) SetPathf(path string, args ...any)

func (*Shared) Std added in v1.7.0

func (sh *Shared) Std(stdin, stdout, stderr bool)

Set custom Stdin,Stdout,Stderr in one function.

func (*Shared) Stderr added in v1.7.0

func (sh *Shared) Stderr(set bool)

Set the individual Stderr.

func (*Shared) Stdin added in v1.7.0

func (sh *Shared) Stdin(set bool)

Set the individual Stdin.

func (*Shared) Stdout added in v1.7.0

func (sh *Shared) Stdout(set bool)

Set the individual Stdout.

Jump to

Keyboard shortcuts

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