Documentation ¶
Index ¶
Constants ¶
View Source
const ValidUUIDRegex = `(?i)^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$`
ValidUUIDRegex is a constant representing a regular expression rule to validate UUID string
Variables ¶
This section is empty.
Functions ¶
func CaptureCommandOutput ¶
CaptureCommandOutput set cobra command args, if necessary, then capture the output
func CaptureOutput ¶
CaptureOutput changes default stdout to intercept into a buffer, converts it to string and returns it
func ChangeCurrentDir ¶
ChangeCurrentDir gets current working directory and changes to its parent until finds the desired directory or fail
func GetCurrentDirName ¶
GetCurrentDirName returns current working directory
func StringifyStruct ¶ added in v1.1.3
StringifyStruct stringify struct for pretty print
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.