git

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitExec

type GitExec struct {
	// contains filtered or unexported fields
}

func NewExec

func NewExec(execPath string, logger gg_log.ILogger) *GitExec

func (*GitExec) ExecuteCommand

func (instance *GitExec) ExecuteCommand(arguments ...string) (out string, err error)

func (*GitExec) FlushLog

func (instance *GitExec) FlushLog()

func (*GitExec) GetPath

func (instance *GitExec) GetPath(path string) (response string)

func (*GitExec) GetTempPath

func (instance *GitExec) GetTempPath(subPath string) (response string)

func (*GitExec) GetWorkPath

func (instance *GitExec) GetWorkPath(subPath string) (response string)

func (*GitExec) IsInstalled

func (instance *GitExec) IsInstalled() bool

func (*GitExec) LogDisableRotation

func (instance *GitExec) LogDisableRotation()

func (*GitExec) LogFlush

func (instance *GitExec) LogFlush()

func (*GitExec) Root

func (instance *GitExec) Root() string

func (*GitExec) SetLogger

func (instance *GitExec) SetLogger(logger gg_log.ILogger) *GitExec

func (*GitExec) SetRoot

func (instance *GitExec) SetRoot(dir string) *GitExec

func (*GitExec) SetTemp

func (instance *GitExec) SetTemp(dir string) *GitExec

func (*GitExec) Temp

func (instance *GitExec) Temp() string

func (*GitExec) Version

func (instance *GitExec) Version() (response string, err error)

type GitHelper

type GitHelper struct {
}
var (
	Git *GitHelper
)

func (*GitHelper) IsInstalled

func (instance *GitHelper) IsInstalled() bool

func (*GitHelper) NewExec

func (instance *GitHelper) NewExec() *GitExec

NewExec Creates new Git command

func (*GitHelper) Version

func (instance *GitHelper) Version() (version string, err error)

Jump to

Keyboard shortcuts

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