package
0.3.4
Repository: https://github.com/jan-xyz/dotfiles.git
Documentation: pkg.go.dev

# README

systemprefs

import "github.com/jan-xyz/dotfiles/internal/plugins/systemprefs"

Package systemprefs allows managing system preferences

Index

type Plugin

Plugin holds the information for automatically setting system preferences.

type Plugin struct {
    Preferences []Preference
    Commander   dotfiles.Commander
}

func (Plugin) Add

func (s Plugin) Add(preferences []string) error

Add takes a list of preferences for setting up. Environemnt variables get expanded before setting value.

func (Plugin) GetMissingPackages

func (s Plugin) GetMissingPackages() ([]string, error)

GetMissingPackages returns a list of system preferences which drifted from the configuration. Environment variables get expanded before checking drift.

func (Plugin) Update

func (s Plugin) Update() error

Update is not implemented.

type Preference

Preference holds the information for a MacOS system preference.

type Preference struct {
    Name  string
    Type  string
    Value string
}

Generated by gomarkdoc

# Structs

Plugin holds the information for automatically setting system preferences.
Preference holds the information for a MacOS system preference.