macos

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter implements the NotificationPort interface for macOS using the system-installed terminal-notifier binary (brew install terminal-notifier).

func NewAdapter

func NewAdapter(themeProvider ThemeProvider, sender string) (*Adapter, error)

NewAdapter creates a new macOS notification adapter. Returns an error if terminal-notifier is not found in PATH.

func (*Adapter) NotifyMessage

func (a *Adapter) NotifyMessage(title, message string) error

NotifyMessage sends a simple text notification via macOS native notifications

func (*Adapter) NotifyPullRequests

func (a *Adapter) NotifyPullRequests(notifications []*port.PRNotificationData) error

NotifyPullRequests sends grouped notifications for pull requests

func (*Adapter) SupportsClickActions

func (a *Adapter) SupportsClickActions() bool

SupportsClickActions returns true for macOS adapter

type ThemeProvider

type ThemeProvider interface {
	GetSystemTheme() string
}

ThemeProvider provides the current system theme

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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