Documentation ¶
Index ¶
- func AddLinesToFile(filename string, newlines ...string) error
- func AddLinesToSortedFile(filename string, newlines ...string) error
- func DirExists(path string) (bool, error)
- func FileExistsOrProblem(path string) bool
- func FindDirInParent(target string) (string, error)
- func ReadFileLines(filename string) ([]string, error)
- func RunBash(command string, args ...string) error
- func RunBashInput(input string, command string, args ...string) error
- func RunBashInputOutput(input []byte, command string, args ...string) ([]byte, error)
- func RunBashOutput(command string, args ...string) (string, error)
- func RunBashOutputSilent(command string, args ...string) (string, error)
- func ShredFiles(names []string) error
- func ShredInfo() string
- func Touch(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLinesToFile ¶
AddLinesToFile adds lines to the end of a file.
func AddLinesToSortedFile ¶
AddLinesToSortedFile adds a line to a sorted file.
func FileExistsOrProblem ¶
FileExistsOrProblem returns true if the file exists or if we can't determine its existence.
func FindDirInParent ¶
FindDirInParent looks for target in CWD, or .., or ../.., etc.
func ReadFileLines ¶
ReadFileLines is like ioutil.ReadFile() but returns an []string.
func RunBashInput ¶
RunBashInput runs a Bash command, sends input on stdin.
func RunBashInputOutput ¶
RunBashInputOutput runs a Bash command, sends input on stdin.
func RunBashOutput ¶
RunBashOutput runs a Bash command, captures output.
func RunBashOutputSilent ¶
RunBashOutputSilent runs a Bash command, captures output, discards stderr.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.