Versions in this module Expand all Collapse all v0 v0.22.2 Mar 23, 2024 v0.22.1 Mar 20, 2024 Changes in this version + var ConfigurationTmpl = template.Must(...(...)) + var ErrProfileRequired = errors.New("profile must be specified or default profile set") + var ErrProfileUnknown = errors.New("specified profile not found") + var ErrRepoNotAbs = errors.New("repository path must be absolute") + var ErrRepoUnset = errors.New("repository path must be set in configuration") + var ErrUnsetHOME = errors.New("HOME environment variable unset") + var PropertiesTmpl = template.Must(...(...)) + func HomeConf() string + type Configuration struct + Color string + Columnate bool + CurrentProfile string + Debug bool + DefaultProfile string + Profiles map[string]*Profile + Quiet bool + func Default() *Configuration + func FindAll() (*Configuration, error) + func New(repo string) *Configuration + func Read(filepath string) (*Configuration, error) + func (c *Configuration) GetProfile(name string) (*Profile, error) + func (c *Configuration) MergeFile(filepath string) error + func (c *Configuration) SelectProfile() (*Profile, string, error) + func (c *Configuration) WriteFile(filepath string) error + func (c *Configuration) WriteProperties(w io.Writer) error + func (c *Configuration) WriteTemplate(w io.Writer) error + type Profile struct + AddParameters []string + Backup bool + BackupDir string + IgnoreAUR []string + Interactive bool + PostAction string + PreAction string + RemoveParameters []string + Repository string + RequireSignature bool + func DefaultProfile() *Profile + func NewProfile(repo string) *Profile + func (p *Profile) Init() error