config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDotfileToConfig

func AddDotfileToConfig(configPath string, name, path string) error

AddDotfileToConfig adds a new dotfile to the config file

func LoadDotfilesConfig

func LoadDotfilesConfig(configPath string) (map[string]string, error)

LoadDotfilesConfig loads the dotfiles from the config file

func SaveConfig

func SaveConfig(configFilePath string, config Config) error

SaveConfig saves the config to the file

Types

type Config

type Config struct {
	ConfigFilePath string
	StoragePath    string
	GitEnabled     bool
	Dotfiles       map[string]string `toml:"dotfiles"`
}

Config represents the structure of the entire configuration file

func (*Config) GetConfigFilePath

func (c *Config) GetConfigFilePath() string

GetConfigFilePath returns the path to the config file

Jump to

Keyboard shortcuts

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