repox

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRemoteURL

func FormatRemoteURL(repo Interface, protocol string) string

TODO there is a parallel implementation for non-isolated commands

func FullName

func FullName(r Interface) string

func GenerateRepoURL

func GenerateRepoURL(repo Interface, p string, args ...interface{}) string

func IsSame

func IsSame(a, b Interface) bool

Types

type Interface

type Interface interface {
	RepoName() string
	RepoOwner() string
	RepoHost() string
}

func FromFullName

func FromFullName(nwo string) (Interface, error)

func FromURL

func FromURL(u *url.URL) (Interface, error)

func New

func New(owner, repo string) Interface

func NewWithHost

func NewWithHost(owner, repo, hostname string) Interface

Jump to

Keyboard shortcuts

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