Versions in this module Expand all Collapse all v0 v0.0.1 Aug 15, 2021 Changes in this version + func WriteApplicationConfig(config ApplicationConfig, w io.Writer) error + type Application struct + func NewApplication(config ApplicationConfig, homePath string, xdgConfigPath string, ...) *Application + func (a *Application) Backup() + func (a *Application) Config() ApplicationConfig + func (a *Application) Restore() + type ApplicationConfig struct + HomePaths []string + Name string + Title string + XDGConfigPaths []string + func ParseApplicationConfig(r io.Reader) (ApplicationConfig, error) + type ApplicationError struct + Err error + Message string + Op string + Path string + func (e *ApplicationError) Error() string + func (e *ApplicationError) Unwrap() error + type Config struct + Dir string + LocalDir string + type Controller struct + func NewController(homePath string, xdgConfigPath string, logger logger) *Controller + func (c *Controller) Application(name string) (ApplicationConfig, error) + func (c *Controller) ApplicationConfigPath(name string) (string, error) + func (c *Controller) Applications() []ApplicationConfig + func (c *Controller) BackupAll() + func (c *Controller) CheckInit() bool + func (c *Controller) Create(name string) (string, error) + func (c *Controller) HomePath() string + func (c *Controller) Init() error + func (c *Controller) LoadApplications() error + func (c *Controller) RestoreAll() + func (c *Controller) XDGConfigPath() string