Documentation
¶
Index ¶
- func AddToPATH(path string, filename string) error
- func CheckStringExists(text string, filepath string) (bool, error)
- func DeleteStrings(lines []string, filepath string, perm fs.FileMode) error
- func PrintAndLogInfo(message string)
- func RunCommand(command string, displayCommand bool, delay time.Duration, save bool) error
- func RunCommandAndCaptureOutput(command string, displayCommand bool, delay time.Duration, save bool) (string, error)
- func VerifyFileExists(path string) bool
- func WriteStrings(lines []string, filepath string, perm fs.FileMode, print bool, save bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStringExists ¶
CheckStringExists checks if a string exists in a file
func DeleteStrings ¶ added in v0.0.24
DeleteStrings deletes a slice of strings from a file
func PrintAndLogInfo ¶ added in v0.0.19
func PrintAndLogInfo(message string)
func RunCommand ¶
Runs a command in the terminal and streams the output
func RunCommandAndCaptureOutput ¶
func RunCommandAndCaptureOutput(command string, displayCommand bool, delay time.Duration, save bool) (string, error)
Runs a command in the terminal and return stdout/stderr as seperate strings
func VerifyFileExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.