apps

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package apps provides application detection and configuration functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDetector

type AppDetector struct {
	// contains filtered or unexported fields
}

AppDetector handles detection and configuration of macOS applications

func NewAppDetector

func NewAppDetector(homeDir string) *AppDetector

NewAppDetector creates a new application detector

func (*AppDetector) AutoDetectApps

func (d *AppDetector) AutoDetectApps() ([]*config.AppConfig, error)

AutoDetectApps automatically detects applications and generates configurations

func (*AppDetector) DetectApp

func (d *AppDetector) DetectApp(appName string) (*config.AppConfig, error)

DetectApp attempts to detect an application and its configuration paths

func (*AppDetector) GetInstalledApps

func (d *AppDetector) GetInstalledApps() []InstalledApp

GetInstalledApps returns the cached list of installed apps

func (*AppDetector) GetSupportedApps

func (d *AppDetector) GetSupportedApps() []string

GetSupportedApps returns a list of known supported applications

func (*AppDetector) ScanInstalledApps

func (d *AppDetector) ScanInstalledApps() ([]InstalledApp, error)

ScanInstalledApps scans the system for installed applications using system_profiler and mdfind

type AppInfo

type AppInfo struct {
	Name        string
	DisplayName string
	BundleID    string
	Paths       []PathInfo
}

AppInfo represents information about a known application

type InstalledApp

type InstalledApp struct {
	Name        string `json:"name"`
	BundleID    string `json:"bundle_id"`
	Path        string `json:"path"`
	Version     string `json:"version"`
	DisplayName string `json:"display_name"`
}

InstalledApp represents an application installed on the system

type PathInfo

type PathInfo struct {
	Source      string
	Destination string
	Type        config.PathType
	Required    bool
}

PathInfo represents a configuration path for an application

Jump to

Keyboard shortcuts

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