Documentation
¶
Index ¶
- Variables
- func Clone(gitURL, path string) error
- func CurrentBranch() string
- func CurrentGitRepo() (string, error)
- func CurrentRemote(branch string) string
- func Fetch(path string) error
- func FuzzyFinder(lines []string) (filtered string)
- func FuzzyLine(filePath string) string
- func GitCommand(args ...string) (string, error)
- func Projects(syncAll bool) []string
- func RemoteURL(remote string) string
- func SetGitConfig(key, value, path string) error
- func Setup()
- func SymbolicRef(ref string, short bool) (string, error)
- func TransferGitURLToURL(gitURL string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LabDir string ConfigPath string ProjectPath string )
View Source
var (
// Config global gitlab config
Config *gitlabConfig
)
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 a content, if enter ctrl-c will return ""
func GitCommand ¶ added in v0.0.8
func SetGitConfig ¶ added in v0.1.0
func SymbolicRef ¶ added in v0.0.8
SymbolicRef return the ref branch
func TransferGitURLToURL ¶ added in v0.0.8
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.