git

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubProvider    = "github"
	GitLabProvider    = "gitlab"
	BitBucketProvider = "bitbucket-cloud"
)

Variables

View Source
var SupportedProvidersList = SupportedProviders{GitHubProvider}

Functions

func GitProviderName

func GitProviderName(url string) (string, error)

func RepoOwnerAndNameFromUrl

func RepoOwnerAndNameFromUrl(url string) (string, string, error)

RepoOwnerAndNameFromUrl for input url returns repo owner and repo name eg. for github.com/foo/bar returns 'foo' and 'bar'

Types

type SupportedProviders

type SupportedProviders []string

func (SupportedProviders) PrettyString

func (sp SupportedProviders) PrettyString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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