remote

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

type Remote struct {
	URL   string
	Fetch string
}

Remote represents a remote repository in a git configuration

func Get

func Get(context context.Context, reader io.Reader, name string) (remote *Remote, err error)

Get gets a remote from a reader

func GetFromGitConfig

func GetFromGitConfig(context context.Context, name string) (remote *Remote, err error)

GetFromGitConfig gets a remote from the git configuration

func (Remote) RepositoryName added in v0.5.0

func (remote Remote) RepositoryName() string

RepositoryName gets the full repository name from the remote URL (without the .git extension)

func (Remote) WorkspaceName added in v0.11.0

func (remote Remote) WorkspaceName() string

WorkspaceName gets the workspace name from the remote URL

Jump to

Keyboard shortcuts

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