Documentation ¶
Index ¶
- Constants
- type CmdBuilder
- func (c *CmdBuilder) AddMakepkgFlag(flag string)
- func (c *CmdBuilder) BuildGitCmd(ctx context.Context, dir string, extraArgs ...string) *exec.Cmd
- func (c *CmdBuilder) BuildMakepkgCmd(ctx context.Context, dir string, extraArgs ...string) *exec.Cmd
- func (c *CmdBuilder) BuildPacmanCmd(ctx context.Context, args *parser.Arguments, mode parser.TargetMode, ...) *exec.Cmd
- func (c *CmdBuilder) Capture(cmd *exec.Cmd) (stdout, stderr string, err error)
- func (c *CmdBuilder) SetPacmanDBPath(dbPath string)
- func (c *CmdBuilder) Show(cmd *exec.Cmd) error
- func (c *CmdBuilder) SudoLoop()
- type GitCmdBuilder
- type ICmdBuilder
- type OSRunner
- type Runner
Constants ¶
View Source
const SudoLoopDuration = 241
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdBuilder ¶
type CmdBuilder struct { GitBin string GitFlags []string MakepkgFlags []string MakepkgConfPath string MakepkgBin string SudoBin string SudoFlags []string SudoLoopEnabled bool PacmanBin string PacmanConfigPath string PacmanDBPath string Runner Runner }
func (*CmdBuilder) AddMakepkgFlag ¶
func (c *CmdBuilder) AddMakepkgFlag(flag string)
func (*CmdBuilder) BuildGitCmd ¶
func (*CmdBuilder) BuildMakepkgCmd ¶
func (*CmdBuilder) BuildPacmanCmd ¶
func (c *CmdBuilder) BuildPacmanCmd(ctx context.Context, args *parser.Arguments, mode parser.TargetMode, noConfirm bool) *exec.Cmd
func (*CmdBuilder) Capture ¶
func (c *CmdBuilder) Capture(cmd *exec.Cmd) (stdout, stderr string, err error)
func (*CmdBuilder) SetPacmanDBPath ¶
func (c *CmdBuilder) SetPacmanDBPath(dbPath string)
func (*CmdBuilder) SudoLoop ¶
func (c *CmdBuilder) SudoLoop()
type GitCmdBuilder ¶
type ICmdBuilder ¶
type ICmdBuilder interface { Runner BuildGitCmd(ctx context.Context, dir string, extraArgs ...string) *exec.Cmd BuildMakepkgCmd(ctx context.Context, dir string, extraArgs ...string) *exec.Cmd BuildPacmanCmd(ctx context.Context, args *parser.Arguments, mode parser.TargetMode, noConfirm bool) *exec.Cmd AddMakepkgFlag(string) SetPacmanDBPath(string) SudoLoop() }
Click to show internal directories.
Click to hide internal directories.