git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AzureFormat = "https://%s/_git/%s"
View Source
const GitFormat = "https://%s/%s"

Variables

This section is empty.

Functions

func GetRemoteHttpURL

func GetRemoteHttpURL(folderName string) (string, error)

func Register

func Register(name string, sshRegex string, httpRegex string, getSshGitUrlFromMatches matchesParser)

Types

type GitParser

type GitParser struct {
	// contains filtered or unexported fields
}

type GitURL

type GitURL struct {
	Success bool
	Domain  string
	Repo    string
	Format  string
}

func Parse

func Parse(url string) (gitUrl *GitURL, err error)

func (GitURL) GetURL

func (g GitURL) GetURL() string

Jump to

Keyboard shortcuts

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