Versions in this module Expand all Collapse all v1 v1.25.0 Oct 29, 2025 Changes in this version + const DefaultLocale + var ErrBrokenCommand = errors.New("git command is broken") + var GitExecutable = "git" + func CommonCmdServEnvs() []string + func CommonGitCmdEnvs() []string + func ConcatenateError(err error, stderr string) error + func HomeDir() string + func IsErrorExitCode(err error, code int) bool + func SetDefaultCommandExecutionTimeout(timeout time.Duration) + func SetExecutablePath(path string) error + type Command struct + func NewCommand(args ...internal.CmdArg) *Command + func (c *Command) AddArguments(args ...internal.CmdArg) *Command + func (c *Command) AddConfig(key, value string) *Command + func (c *Command) AddDashesAndList(list ...string) *Command + func (c *Command) AddDynamicArguments(args ...string) *Command + func (c *Command) AddOptionFormat(opt string, args ...any) *Command + func (c *Command) AddOptionValues(opt internal.CmdArg, args ...string) *Command + func (c *Command) LogString() string + func (c *Command) ProcessState() string + func (c *Command) Run(ctx context.Context, opts *RunOpts) error + func (c *Command) RunStdBytes(ctx context.Context, opts *RunOpts) (stdout, stderr []byte, runErr RunStdError) + func (c *Command) RunStdString(ctx context.Context, opts *RunOpts) (stdout, stderr string, runErr RunStdError) + type RunOpts struct + Dir string + Env []string + PipelineFunc func(context.Context, context.CancelFunc) error + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Timeout time.Duration + UseContextTimeout bool + type RunStdError interface + Stderr func() string + Unwrap func() error + type TrustedCmdArgs []internal.CmdArg + func ToTrustedCmdArgs(args []string) TrustedCmdArgs v1.25.0-rc0 Sep 25, 2025