Documentation
¶
Index ¶
- Variables
- func Clone(gitURL, path string) error
- func CurrentBranch() string
- func CurrentGitRepo() (string, error)
- func CurrentRemote(branch string) string
- func DoTrace(client *gitlab.Client, pid interface{}, job *gitlab.Job, tailLine int64) error
- func Fetch(path string) error
- func FuzzyFinder(lines []string) (filtered string)
- func FuzzyLine(filePath string) string
- func FuzzyLines(filePath string) []string
- func FuzzyMultiFinder(lines []string) (filtered []string)
- func GitCommand(args ...string) (string, error)
- func IsRunning(status string) bool
- func NewClient() *gitlab.Client
- func Projects(syncAll bool) []string
- func RemoteURL(remote string) string
- func SetGitConfig(key, value, path string) error
- func Setup()
- func SetupConfig()
- func SymbolicRef(ref string, short bool) (string, error)
- func TraceRunningJobs(client *gitlab.Client, pid interface{}, jobs []*gitlab.Job, tailLine int64) bool
- func TransferGitURLToProject(gitURL string) string
- func TransferGitURLToURL(gitURL string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Config global gitlab config Config *gitlabConfig MainConfig *mainConfig LabDir string ConfigPath string ProjectPath string )
Functions ¶
func CurrentBranch ¶ added in v0.0.8
func CurrentBranch() string
CurrentGitRepo return the current branch
func CurrentGitRepo ¶ added in v0.0.8
CurrentGitRepo return the GitRepo path
func CurrentRemote ¶ added in v0.0.8
CurrentGitRepo return the current branch ref remote
func FuzzyFinder ¶ added in v0.0.6
FuzzyFinder : fuzzy finder content
func FuzzyLines ¶ added in v0.3.0
FuzzyLine : fuzzy finder file lines
func FuzzyMultiFinder ¶ added in v0.2.0
FuzzyMultiFinder : fuzzy finder multiple content
func GitCommand ¶ added in v0.0.8
func SetGitConfig ¶ added in v0.1.0
func SetupConfig ¶ added in v0.2.16
func SetupConfig()
func SymbolicRef ¶ added in v0.0.8
SymbolicRef return the ref branch
func TraceRunningJobs ¶ added in v0.2.6
func TransferGitURLToProject ¶ added in v0.2.0
TransferGitURLToProject example: [email protected]/Ackerr:lab.git -> Ackerr/lab https://gitlab.com/Ackerr/lab.git -> Ackerr/lab
func TransferGitURLToURL ¶ added in v0.0.8
TransferGitURLToURL example: [email protected]/Ackerr:lab.git -> https://github.com/Ackerr/lab https://github.com/Ackerr/lab.git -> https://github.com/Ackerr/lab
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.