Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMacOSPrefix ¶ added in v0.13.0
DefaultMacOSPrefix returns the preferred install prefix for macOS binaries and config. Apple Silicon defaults to /opt/homebrew; Intel defaults to /usr/local.
func ResolveStateDir ¶
ResolveStateDir returns the directory used to persist runtime state files. When no override is provided, state files live next to the config file.
func ResolveStatePath ¶
Types ¶
type LaunchdMode ¶ added in v0.13.0
type LaunchdMode string
const ( LaunchdModeAgent LaunchdMode = "agent" LaunchdModeDaemon LaunchdMode = "daemon" )
type MacOSLaunchdLayout ¶ added in v0.13.0
type MacOSLaunchdLayout struct {
Label string
PlistPath string
BinPath string
ConfigPath string
StateDir string
LogDir string
}
func DefaultMacOSLaunchdLayout ¶ added in v0.13.0
func DefaultMacOSLaunchdLayout(mode LaunchdMode, machine, userHome string, optHomebrewExists, skipBuild bool) MacOSLaunchdLayout
DefaultMacOSLaunchdLayout returns the recommended macOS paths for launchd installs.