types

package
Version: v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Debug    bool
	Base     string
	Options  []string
	Logger   logger
	Executor Executor
}

Cmd Command.

func NewCmd added in v1.0.0

func NewCmd(name string) *Cmd

NewCmd Creates a new Cmd.

func (*Cmd) AddOptions

func (g *Cmd) AddOptions(option string)

AddOptions Add one command option.

func (*Cmd) ApplyOptions added in v0.10.0

func (g *Cmd) ApplyOptions(options ...Option)

ApplyOptions Apply command options.

func (*Cmd) Exec added in v1.0.0

func (g *Cmd) Exec(name string, debug bool, args ...string) (string, error)

Exec Execute the Git command call.

type Executor added in v1.0.0

type Executor func(name string, debug bool, args ...string) (string, error)

Executor The Git command call function.

type Option

type Option func(g *Cmd)

Option Command option.

Source Files

Jump to

Keyboard shortcuts

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