process

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFactory

type DefaultFactory struct {
}

func NewFactory

func NewFactory() *DefaultFactory

func (*DefaultFactory) NewProcess

func (f *DefaultFactory) NewProcess(arguments ...string) *Process

func (*DefaultFactory) NewSudoProcess

func (f *DefaultFactory) NewSudoProcess(sudoPassword string, arguments ...string) *Process

type Factory

type Factory interface {
	NewProcess(arguments ...string) *Process
	NewSudoProcess(sudoPassword string, arguments ...string) *Process
}

type Process

type Process struct {
	// contains filtered or unexported fields
}

func New

func New(arguments ...string) *Process

func NewSudoProcess

func NewSudoProcess(sudoPassword string, arguments ...string) *Process

func NewWslProcess

func NewWslProcess(distribution string, arguments ...string) *Process

func NewWslSudoProcess

func NewWslSudoProcess(distribution string, arguments ...string) *Process

func (*Process) AddArguments

func (p *Process) AddArguments(arguments ...string) *Process

func (*Process) AddPreArguments

func (p *Process) AddPreArguments(arguments ...string) *Process

func (*Process) Output

func (p *Process) Output() (out string, err error)

func (*Process) Run

func (p *Process) Run() (out string, err error)

func (*Process) SetNormalArguments

func (p *Process) SetNormalArguments(indexes ...int) *Process

func (*Process) SetNormalPreArguments

func (p *Process) SetNormalPreArguments(indexes ...int) *Process

func (*Process) SetSecretArguments

func (p *Process) SetSecretArguments(indexes ...int) *Process

func (*Process) SetSecretPreArguments

func (p *Process) SetSecretPreArguments(indexes ...int) *Process

func (*Process) String

func (p *Process) String() string

func (*Process) StringWithSecret

func (p *Process) StringWithSecret() string

type WslFactory

type WslFactory struct {
	// contains filtered or unexported fields
}

func NewWslFactory

func NewWslFactory(distribution string) *WslFactory

func (*WslFactory) NewProcess

func (w *WslFactory) NewProcess(arguments ...string) *Process

func (*WslFactory) NewSudoProcess

func (w *WslFactory) NewSudoProcess(sudoPassword string, arguments ...string) *Process

Jump to

Keyboard shortcuts

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