app

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ConfigFilePath string
	StoragePath    string
	Dotfile        Dotfile
	Config         *config.Config
	ConfigError    error
	// contains filtered or unexported fields
}

func (*App) AddDotfile

func (app *App) AddDotfile(path string, dotfileName string, ignores []string) error

func (*App) CopyDirectory added in v0.4.3

func (app *App) CopyDirectory(src, dst string, ignores []string) error

func (*App) CopyFile added in v0.4.3

func (app *App) CopyFile(src, dst string, ignores []string) error

func (*App) ExpandHomeDir added in v0.4.3

func (app *App) ExpandHomeDir(path string) string

func (*App) GetConfigFilePath

func (app *App) GetConfigFilePath() string

func (*App) GetDotfiles

func (app *App) GetDotfiles() map[string]string

func (*App) GitCommitChanges added in v0.4.1

func (app *App) GitCommitChanges(action, dotfileName string) error

GitCommitChanges commits changes to the Git repository

func (*App) GitInit added in v0.4.1

func (app *App) GitInit() error

GitInit initializes a Git repository in the storage path if enable = true

func (*App) IsDir added in v0.4.3

func (app *App) IsDir(path string) bool

func (*App) LoadConfig

func (app *App) LoadConfig() error

func (*App) ReloadConfig

func (app *App) ReloadConfig() error

func (*App) RemoveDotFile

func (app *App) RemoveDotFile(path string, name string) error

func (*App) UpdateAllDotfiles added in v0.4.1

func (app *App) UpdateAllDotfiles() error

UpdateAllDotfiles updates all dotfiles in the configuration

func (*App) UpdateConfig added in v0.4.3

func (app *App) UpdateConfig(dotfileName, cleanedPath string, ignores []string) error

func (*App) UpdateDotfile added in v0.4.1

func (app *App) UpdateDotfile(name, path string) error

UpdateDotfile updates a single dotfile

func (*App) UpdateDotfileIgnores added in v0.5.0

func (app *App) UpdateDotfileIgnores(name string, ignores []string) error

func (*App) UpdateDotfiles added in v0.4.1

func (app *App) UpdateDotfiles(name string) error

UpdateDotfiles updates either all dotfiles or a specific one based on the provided name

type Dotfile

type Dotfile struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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