internal

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 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 DoTrace added in v0.2.6

func DoTrace(client *gitlab.Client, pid interface{}, job *gitlab.Job, tailLine int64) error

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 content

func FuzzyLine added in v0.0.7

func FuzzyLine(filePath string) string

FuzzyLine : fuzzy finder file line

func FuzzyLines added in v0.3.0

func FuzzyLines(filePath string) []string

FuzzyLine : fuzzy finder file lines

func FuzzyMultiFinder added in v0.2.0

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

FuzzyMultiFinder : fuzzy finder multiple content

func GitCommand added in v0.0.8

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

func IsRunning added in v0.2.14

func IsRunning(status string) bool

IsRunning check job status

func NewClient added in v0.2.0

func NewClient() *gitlab.Client

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 SetupConfig added in v0.2.16

func SetupConfig()

func SymbolicRef added in v0.0.8

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

SymbolicRef return the ref branch

func TraceRunningJobs added in v0.2.6

func TraceRunningJobs(client *gitlab.Client, pid interface{}, jobs []*gitlab.Job, tailLine int64) bool

func TransferGitURLToProject added in v0.2.0

func TransferGitURLToProject(gitURL string) string

TransferGitURLToProject example: git@gitlab.com/Ackerr:lab.git -> Ackerr/lab https://gitlab.com/Ackerr/lab.git -> Ackerr/lab

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