internal

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 Clone added in v0.0.2

func Clone(gitURL, path string) error

Clone git clone the gitlab project

func CurrentBranch added in v0.0.8

func CurrentBranch() string

CurrentGitRepo return the current branch

func CurrentGitRepo added in v0.0.8

func CurrentGitRepo() (string, error)

CurrentGitRepo return the GitRepo path

func CurrentRemote added in v0.0.8

func CurrentRemote(branch string) string

CurrentGitRepo return the current branch ref remote

func Fetch added in v0.1.4

func Fetch(path string) error

func FuzzyFinder added in v0.0.6

func FuzzyFinder(lines []string) (filtered string)

FuzzyFinder : fuzzy finder a content, if enter ctrl-c will return ""

func FuzzyLine added in v0.0.7

func FuzzyLine(filePath string) string

FuzzyLine : fuzzy finder file line

func GitCommand added in v0.0.8

func GitCommand(args ...string) (string, error)

func Projects

func Projects(syncAll bool) []string

Projects will return all projects path with namespace

func RemoteURL added in v0.0.8

func RemoteURL(remote string) string

func SetGitConfig added in v0.1.0

func SetGitConfig(key, value, path string) error

func Setup added in v0.1.1

func Setup()

func SymbolicRef added in v0.0.8

func SymbolicRef(ref string, short bool) (string, error)

SymbolicRef return the ref branch

func TransferGitURLToURL added in v0.0.8

func TransferGitURLToURL(gitURL string) string

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.

Jump to

Keyboard shortcuts

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