Documentation
¶
Overview ¶
Thin wrapper for calling system-provided executables.
Useful for augmenting go-git with OS provided git tooling (filter-branch, interpret-trailers, etc).
Index ¶
- type Output
- func Command(stdout, stderr, combined io.ReadWriter, exe string, arg ...string) (*exec.Cmd, *Output)
- func Run(exe string, arg ...string) (*Output, error)
- func RunWithOutput(stdout, stderr, combined io.ReadWriter, exe string, arg ...string) (*Output, error)
- func Script(cmd [][]string, env ...string) (*Output, error)
- func ScriptStep(arg []string, env ...string) (*Output, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
func Command ¶
func Command(stdout, stderr, combined io.ReadWriter, exe string, arg ...string) (*exec.Cmd, *Output)
Setup command to capture all outputs.
func RunWithOutput ¶
func RunWithOutput(stdout, stderr, combined io.ReadWriter, exe string, arg ...string) (*Output, error)
Execute command with provided standard outputs. Useful for piping.
func Script ¶
Run multiple commands in sequence. Stop at first error.
Returns *Output struct for the last script step that was executed (successful or not).
func ScriptStep ¶
Execute a single command verbosely.
Click to show internal directories.
Click to hide internal directories.