Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AncestorDirs ¶
AncestorDirs returns a list of p's ancestor directories (optionally including itself) excluding the root ("." or "/")).
func CurrentUserHomeDir ¶
func CurrentUserHomeDir() string
CurrentUserHomeDir tries to get the current user's home directory in a cross-platform manner.
func SafeCommandName ¶
Makes command name safe for shell script (and for makefiles). For example, Cygwin does not like when you trying to execute C:/foo/bar.exe arguments so we replacing first : with \: there. On Unix/Darwin there is no need to perform replacements
Types ¶
Click to show internal directories.
Click to hide internal directories.