Documentation
¶
Overview ¶
Package system contains functionality for host-related activities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilesExistInTree ¶
FilesExistInTree performs file discovery by allowing various tools to check if they need to run based on file presence.
func GetFileTypeListerCommand ¶
GetFileTypeListerCommand takes a ripgrep-known file type, and returns a string (to be used as an arg after `bash -c`) representing a command & its args to find matching files. ripgrep is used as the default file-finder across the codebase because not only is it fast, but it also supports files like `.gitignore` without any extra configuration.
func RunCommand ¶
RunCommand takes a string slice containing a command & its args to run, and returns a consistent error message in case of failure. It also returns the command output, in case the caller needs to parse it on their own.
Types ¶
This section is empty.