Documentation
¶
Index ¶
- func DirExistAndHasContent(dirPath string) error
- func FileExistAndItIsAFile(filePath string) error
- func FileIsNotEmpty(filepath string) error
- func FindGitRepoDir(levels int) (string, error)
- func GenerateRandomString(opt RandomStringOptions) string
- func GetCommandArgs(cmd string) ([]string, error)
- func GetCurrentDir() string
- func GetHomeDir() string
- func GetUUID() string
- func MapIsNulOrEmpty(target map[string]string) bool
- func MergeSlices(slices ...[]string) []string
- func NormaliseStringToLower(target string) string
- func NormaliseStringToUpper(target string) string
- func RemoveDoubleQuotes(target string) string
- func RunCommand(cmd Command) (string, error)
- func WrapAtLength(input string, length int) string
- func WriteFileWithContent(filename string, content []byte) error
- type Command
- type RandomStringOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirExistAndHasContent ¶
func FileExistAndItIsAFile ¶
func FileIsNotEmpty ¶
func FindGitRepoDir ¶
func GenerateRandomString ¶
func GenerateRandomString(opt RandomStringOptions) string
func GetCommandArgs ¶
GetCommandArgs parses the job command and returns the arguments.
func GetCurrentDir ¶
func GetCurrentDir() string
func GetHomeDir ¶
func GetHomeDir() string
func MapIsNulOrEmpty ¶
func MergeSlices ¶
func NormaliseStringToLower ¶
func NormaliseStringToUpper ¶
func RemoveDoubleQuotes ¶
func RunCommand ¶
RunCommand runs a command and returns the output.
func WrapAtLength ¶
WrapAtLength wraps the input paragraph at the specified length
func WriteFileWithContent ¶
Types ¶
type RandomStringOptions ¶
Click to show internal directories.
Click to hide internal directories.