get

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// GitConfigKey is the key that is used to store GETPATH information in the global Git config
	GitConfigKey = "get.path"

	// EnvKey is the name of the environmental variable that is used to store GETPATH information
	EnvKey = "GETPATH"
)

Variables

This section is empty.

Functions

func Clone

func Clone(u *url.URL, dir string) (string, error)

Clone clones the remote repository to the GETPATH and returns the directory

func Directory

func Directory(u *url.URL) string

Directory parses the directory where the cloned repository will be downloaded from the URL

func ParseURL

func ParseURL(remote string) (*url.URL, error)

ParseURL parses and returns a URL from the remote string provided

func Path

func Path() (string, error)

Path returns the absolute GETPATH

Types

This section is empty.

Jump to

Keyboard shortcuts

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