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 CurrentRemote ¶
CurrentGitRepo return the current branch ref remote
func FuzzyFinder ¶
FuzzyFinder : fuzzy finder content
func FuzzyMultiFinder ¶
FuzzyMultiFinder : fuzzy finder multiple content
func GitCommand ¶
func SetGitConfig ¶
func SetupConfig ¶
func SetupConfig()
func SymbolicRef ¶
SymbolicRef return the ref branch
func TraceRunningJobs ¶
func TransferGitURLToProject ¶
TransferGitURLToProject example: git@gitlab.com/Ackerr:lab.git -> Ackerr/lab https://gitlab.com/Ackerr/lab.git -> Ackerr/lab
func TransferGitURLToURL ¶
TransferGitURLToURL example: git@github.com/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.