Documentation
¶
Index ¶
- func BuildRemoteURL(host, org, repo string) string
- func GetRemoteURL(repoPath string) (string, error)
- func GetUserEmail(repoPath string) (string, error)
- func GetUserName(repoPath string) (string, error)
- func IsRepo(path string) bool
- func ParseRemoteURL(url string) (host, org, repo string, err error)
- func SetRemoteURL(repoPath, url string) error
- func SetUserEmail(repoPath, email string) error
- func SetUserName(repoPath, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRemoteURL ¶
BuildRemoteURL builds a Git remote URL from components
func GetRemoteURL ¶
GetRemoteURL gets the origin remote URL for a repository
func GetUserEmail ¶
GetUserEmail gets the user.email config for a repository
func GetUserName ¶
GetUserName gets the user.name config for a repository
func ParseRemoteURL ¶
ParseRemoteURL parses a Git remote URL and extracts the host and path
func SetRemoteURL ¶
SetRemoteURL sets the origin remote URL for a repository
func SetUserEmail ¶
SetUserEmail sets the user.email config for a repository
func SetUserName ¶
SetUserName sets the user.name config for a repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.