launchagent

package
v0.32.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerLabel    = "io.tars.server"
	DefaultAssistantLabel = "io.tars.assistant"
	ServiceLabelEnv       = "TARS_LAUNCHD_LABEL"
	ServiceDomainEnv      = "TARS_LAUNCHD_DOMAIN"
)

Variables

This section is empty.

Functions

func BuildPlist

func BuildPlist(cfg Config) string

func DefaultPath

func DefaultPath(label string, defaultLabel string) (string, error)

func Install

func Install(path string, content string) error

func PathForHome

func PathForHome(home string, label string, defaultLabel string) string

func ResolveServiceIdentity

func ResolveServiceIdentity(defaultLabel string, defaultDomain string) (string, string)

Types

type Config

type Config struct {
	Label            string
	DefaultLabel     string
	ProgramArguments []string
	WorkingDirectory string
	StdoutPath       string
	StderrPath       string
	KeepAlive        bool
	RunAtLoad        bool
	Environment      map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL