Documentation ¶
Index ¶
- func CheckMark() func()
- func CheckUID(u int, g int) (uid, gid uint32)
- func IsPathValid(path string) (bool, error)
- func ProgressBar(size int64, truncatedFilePath string, onCompletionFunc func()) *progressbar.ProgressBar
- func TrimSHA(commitSHA string) string
- func TruncateFileName(srcFilePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUID ¶
checkUID will check the int to see if a value is provided via flags and convert it to uint32 and returns the values
func IsPathValid ¶ added in v0.1.4
IsPathValid checks if a file or directory exists at the given path. It returns true if the path exists, false if it doesn't exist, and an error if any issue occurs during the check.
func ProgressBar ¶
func ProgressBar(size int64, truncatedFilePath string, onCompletionFunc func()) *progressbar.ProgressBar
ProgressBar function will return *progressbar.ProgressBar with given inputs
func TruncateFileName ¶
TruncateFileName will turncate filename for progresbar if its longer then 20 chars
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.