package
0.0.3
Repository: https://github.com/jeftadlvw/git-nest.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CalculateChecksumF calculates the checksum of a given file.
CalculateChecksumS calculates the checksum of a given string.
CloneGitRepository clones a remote git repository.
CreatePrefixedTempFile creates a temporary file using os.CreateTemp.
CreateTempDir creates a temporary directory using os.MkdirTemp.
CreateTempFile creates a temporary file using os.CreateTemp.
FmtTree formats an array of Node to output an ordered information tree.
GetGitFetchHead retrieves the current HEAD of a local repository.
GetGitHasUnpublishedChanges returns whether a local repository has unpushed commits.
GetGitHasUntrackedChanges returns whether a local repository has uncommitted changes.
GetGitRemoteUrl retrieves the remote url from a git directory tree.
GetGitRootDirectory retrieves the root of a git directory tree.
GetGitVersion retrieves the git version installed in the current environment.
GitCheckout changes a local repository's HEAD.
GitPull changes a local repository's HEAD.
No description provided by the author
No description provided by the author
ReadFileToStr is a wrapper for os.ReadFile that checks for the file's existence before reading a file and returns the file's contents as a string.
RunCommand is a subset-wrapper for exec.Command, providing separate return values for stdout and stderr.
RunCommandCombinedOutput is a subset-wrapper for exec.Command, returning both stdout and stderr in one string.
RunCommandLiveOutput is a wrapper for exec.Command that takes a callback function for updates in both stdout and stderr streams.
RunCommandLiveOutputCombinedOutput is a wrapper for exec.Command that takes a callback function for updates in a combined stdout and stderr stream.
StringInsert inserts a string between the start and end delimiter strings.
StringInsertAtFirst is the same as StringInsert, but allows the occurrence of multiple delimiter string in the input string by only replacing the first start-end combination.
WriteStrToFile is a wrapper for os.WriteFile.

# Structs

FmtTreeConfig is a configuration structure when formatting a Node tree.
Node is a small key-value structure to fake an ordered dictionary.