utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountChanges

func CountChanges(status git.Status) (int, int, int, int)

countChanges counts the number of modified, added, deleted, and untracked files in the repository.

func GetBranchName

func GetBranchName(repo *git.Repository) (string, error)

getBranchName retrieves the current branch name.

func GetRepoName

func GetRepoName(repoPath string) (string, error)

func GetRepoOwnerAndName

func GetRepoOwnerAndName(repo *git.Repository) (string, string, error)

getRepoOwnerAndName retrieves the repository owner and name from the local repository's remote URL

func IsGitRepository

func IsGitRepository(path string) bool

isGitRepository checks if a directory is a Git repository.

func ShowSpinner

func ShowSpinner(repoName string, done chan bool)

ShowSpinner displays a spinner in the terminal until done is signaled

func SshAuth

func SshAuth() (*ssh.PublicKeys, error)

sshAuth sets up SSH authentication using a private key file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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