Documentation
¶
Index ¶
- func DirExistAndHasContent(dirPath string) error
- func FileHasContent(file string) error
- func GetAllEnvVarsFromHost() map[string]string
- func IsAGitRepository(repoRoot string, levels int) (gitRoot, subDir string, err error)
- func IsValidDirE(path string) error
- func MergeSlices(slices ...[]string) []string
- type EnvVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirExistAndHasContent ¶
func FileHasContent ¶
func GetAllEnvVarsFromHost ¶
func IsAGitRepository ¶ added in v0.0.7
IsAGitRepository checks if the given directory or any of its parent directories up to `levels` is a git repository. It returns the git root directory, the subdirectory passed relative to the git root, and any error encountered.
func IsValidDirE ¶
func MergeSlices ¶ added in v0.0.8
Types ¶
Click to show internal directories.
Click to hide internal directories.