The highest tagged major version is
v16.
package
Version:
v0.39.0
Opens a new window with list of versions in this module.
Published: Sep 11, 2017
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func ExitStatus(err error) (int, bool)
-
func GitPath() string
-
type Command
-
func Git(ctx context.Context, args ...string) (*Command, error)
-
func GitlabShell(ctx context.Context, envs []string, executable string, args ...string) (*Command, error)
-
func New(ctx context.Context, cmd *exec.Cmd, stdin io.Reader, stdout, stderr io.Writer, ...) (*Command, error)
ExitStatus will return the exit-code from an error
GitPath returns the path to the `git` binary. See `SetGitPath` for details
on how this is set
Command encapsulates operations with commands creates with NewCommand
Git creates a git Command with the given args
GitlabShell creates a gitlab-shell Command with the given args
New creates a Command from an exec.Cmd
func (*Command) Close ¶
Close will send a SIGTERM signal to the process group
belonging to the `cmd` process
Source Files
¶
Click to show internal directories.
Click to hide internal directories.