repo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct{ Store, Home string }

Repo represents a place where dotfiles are stored.

func New

func New(store, home string) *Repo

New returns a pointer to new instance of Repo. Makes sure that paths Repo initialized with are absolute, fails loudly if they are not absolute and can not be made that.

func (*Repo) OriginalFilePath

func (r *Repo) OriginalFilePath(stored string) string

OriginalFilePath computes original path of dotfile (where it should be symlinked) based on path where it is stored.

func (*Repo) StoredDotFiles

func (r *Repo) StoredDotFiles() <-chan *dotfile.DotFile

StoredDotFiles returns a channel producing DotFile objects for every stored dotfile.

func (*Repo) StoredFilePath

func (r *Repo) StoredFilePath(orig string, hostSpecific bool, forceCopy bool) (string, error)

StoredFilePath computes a path for stored dotfile corresponding to a given original path.

Jump to

Keyboard shortcuts

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