Documentation
¶
Index ¶
- type Command
- func (p *Command) AddArguments(arguments ...string) *Command
- func (p *Command) AddPreArguments(arguments ...string) *Command
- func (p *Command) Output() (out string, err error)
- func (p *Command) Run() (err error)
- func (p *Command) SetNormalArguments(indexes ...int) *Command
- func (p *Command) SetNormalPreArguments(indexes ...int) *Command
- func (p *Command) SetSecretArguments(indexes ...int) *Command
- func (p *Command) SetSecretPreArguments(indexes ...int) *Command
- func (p *Command) String() string
- func (p *Command) StringWithSecret() string
- type DefaultFactory
- type Factory
- type WslFactory
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 NewSudoCommand ¶
func NewWslCommand ¶
func NewWslSudoCommand ¶
func (*Command) AddArguments ¶
func (*Command) AddPreArguments ¶
func (*Command) SetNormalArguments ¶
func (*Command) SetNormalPreArguments ¶
func (*Command) SetSecretArguments ¶
func (*Command) SetSecretPreArguments ¶
func (*Command) StringWithSecret ¶
type DefaultFactory ¶
type DefaultFactory struct { }
func NewFactory ¶
func NewFactory() *DefaultFactory
func (*DefaultFactory) NewCommand ¶
func (f *DefaultFactory) NewCommand(arguments ...string) *Command
func (*DefaultFactory) NewSudoCommand ¶
func (f *DefaultFactory) NewSudoCommand(sudoPassword string, arguments ...string) *Command
type WslFactory ¶
type WslFactory struct {
// contains filtered or unexported fields
}
func NewWslFactory ¶
func NewWslFactory(distribution string) *WslFactory
func (*WslFactory) NewCommand ¶
func (w *WslFactory) NewCommand(arguments ...string) *Command
func (*WslFactory) NewSudoCommand ¶
func (w *WslFactory) NewSudoCommand(sudoPassword string, arguments ...string) *Command
Click to show internal directories.
Click to hide internal directories.