Documentation ¶
Index ¶
- func AppendToPath(path, dir string) string
- func CleanPath(location string) (string, error)
- func HomeDir() string
- func MacOS() bool
- func MacOS13OrNewer() bool
- func ParseTemplate(body string, values interface{}) ([]byte, error)
- func RandomAvailablePort() int
- func RemoveFromPath(path, dir string) string
- func RosettaRunning() bool
- func ShellSplit(cmd string) []string
- func WriteTemplate(body string, file string, values interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToPath ¶ added in v0.4.0
AppendToPath appends directory to PATH.
func CleanPath ¶ added in v0.4.5
CleanPath returns the absolute path to the mount location. If location is an empty string, nothing is done.
func MacOS13OrNewer ¶ added in v0.5.0
func MacOS13OrNewer() bool
MacOS13OrNewer returns if the current OS is macOS 13 or newer.
func ParseTemplate ¶
ParseTemplate parses template with body and values and returns the resulting bytes.
func RandomAvailablePort ¶ added in v0.4.0
func RandomAvailablePort() int
RandomAvailablePort returns an available port on the host machine.
func RemoveFromPath ¶ added in v0.4.0
RemoveFromPath removes directory from PATH.
func RosettaRunning ¶ added in v0.5.0
func RosettaRunning() bool
RosettaRunning checks if Rosetta process is running.
func ShellSplit ¶ added in v0.4.3
ShellSplit splits cmd into arguments using.
func WriteTemplate ¶
WriteTemplate writes template with body to file after applying values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.