Documentation ¶
Index ¶
- func ContainsString(needle string, haystack []string) bool
- func ContainsStringStartingWith(prefix string, a []string) bool
- func CopyAndOverrideDirectory(source, target string)
- func DecryptFile(encryptedPathAndFilename string) string
- func DirectoryIsEmpty(filepath string) bool
- func EncryptFile(unencryptedPathAndFilename string) string
- func ExecCommand(commandParts ...string) string
- func ExecCommandAndDumpResultToFile(resultFile string, commandParts ...string)
- func ExecCommandAndFailWithFatalErrorOnError(commandParts ...string)
- func ExecCommandWithStdIn(stdin io.Reader, commandParts ...string) string
- func FileExists(filepath string) bool
- func Log(message string)
- func LogCouldNotExecuteCommand(reasons []string)
- func ParseTable(table string) (rows [][]string, err error)
- func RenderAsTable(header []string, rows [][]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func CopyAndOverrideDirectory ¶
func CopyAndOverrideDirectory(source, target string)
Copies all files from source to target directory But use with caution: Target directory is overriden completely!
func DecryptFile ¶
func DirectoryIsEmpty ¶
func EncryptFile ¶
func ExecCommandAndFailWithFatalErrorOnError ¶
func ExecCommandAndFailWithFatalErrorOnError(commandParts ...string)
func ExecCommandWithStdIn ¶
func FileExists ¶
func LogCouldNotExecuteCommand ¶
func LogCouldNotExecuteCommand(reasons []string)
func ParseTable ¶
func RenderAsTable ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.