Documentation ¶
Index ¶
- func Run(builder *OptionBuilder, cmd string, args ...string) (err error)
- type OptionBuilder
- func (o *OptionBuilder) SetDryRun(b bool) *OptionBuilder
- func (o *OptionBuilder) SetEWriter(writer io.Writer) *OptionBuilder
- func (o *OptionBuilder) SetReader(reader io.Reader) *OptionBuilder
- func (o *OptionBuilder) SetWriter(writer io.Writer) *OptionBuilder
- func (o *OptionBuilder) WithDryRun() *OptionBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptionBuilder ¶
type OptionBuilder struct {
// contains filtered or unexported fields
}
func NewOption ¶
func NewOption() *OptionBuilder
func (*OptionBuilder) SetDryRun ¶
func (o *OptionBuilder) SetDryRun(b bool) *OptionBuilder
func (*OptionBuilder) SetEWriter ¶
func (o *OptionBuilder) SetEWriter(writer io.Writer) *OptionBuilder
func (*OptionBuilder) SetReader ¶
func (o *OptionBuilder) SetReader(reader io.Reader) *OptionBuilder
func (*OptionBuilder) SetWriter ¶
func (o *OptionBuilder) SetWriter(writer io.Writer) *OptionBuilder
func (*OptionBuilder) WithDryRun ¶
func (o *OptionBuilder) WithDryRun() *OptionBuilder
Click to show internal directories.
Click to hide internal directories.