config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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

func LoadDotfilesConfig

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

func SaveConfig

func SaveConfig(configFilePath string, config Config) error

SaveConfig should

Types

type Config

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

Config represents the structure of the entire configuration file

func (*Config) GetConfigFilePath

func (c *Config) GetConfigFilePath() string

Dotfile represents the structure of one dotfile entry example: kitty = "/home/user/.config/kitty"

Jump to

Keyboard shortcuts

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