config

package
v0.0.0-...-7c72d3c Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(dotfileNames []string, force bool) error

func Init

func Init() error

func IsSetup

func IsSetup() bool

func SaveLockfile

func SaveLockfile() error

func Setup

func Setup(dotfilesDir string) error

Types

type DotConfig

type DotConfig struct {
	Dotfiles map[string]DotfileConfig `yaml:"dotfiles"`
}

func Config

func Config() *DotConfig

type DotfileConfig

type DotfileConfig struct {
	Src  string `yaml:"src"`
	Dest string `yaml:"dest"`
	OS   string `yaml:"os"`
}

type DotfileInfo

type DotfileInfo struct {
	SrcHash  string `yaml:"srcHash"`
	DestHash string `yaml:"destHash"`
}

type Lockfile

type Lockfile struct {
	DotfilesDir string                 `yaml:"dotfilesDir"`
	IsSetup     bool                   `yaml:"setup"`
	Dotfiles    map[string]DotfileInfo `yaml:"dotfiles"`
}

Jump to

Keyboard shortcuts

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