dotfiles

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(repoInput string) error

func Clone

func Clone(spec, specified string, https bool) error
func Link(repoInput string, specified []string, dry bool) error

func List

func List(specified string) error

func Update

func Update(repoInput string) error

func Version

func Version() string

Types

type Mappings

type Mappings map[string][]abspath.AbsPath

func GetMappings

func GetMappings(configDir abspath.AbsPath) (Mappings, error)

func GetMappingsForPlatform

func GetMappingsForPlatform(platform string, parent abspath.AbsPath) (Mappings, error)
func (maps Mappings) ActualLinks(repo abspath.AbsPath) ([]PathLink, error)
func (maps Mappings) CreateAllLinks(dir abspath.AbsPath, dry bool) error
func (maps Mappings) CreateSomeLinks(specified []string, dir abspath.AbsPath, dry bool) error

func (Mappings) UnlinkAll

func (maps Mappings) UnlinkAll(repo abspath.AbsPath) error

type NothingLinkedError

type NothingLinkedError struct {
	RepoPath string
}

func (NothingLinkedError) Error

func (err NothingLinkedError) Error() string
type PathLink struct {
	// contains filtered or unexported fields
}

type Repository

type Repository struct {
	URL             string
	Path            abspath.AbsPath
	IncludesRepoDir bool
	Git             string
}

Repository represents a repository on local filesystem TODO: Enable to specify branch name?

func NewRepository

func NewRepository(spec, specified string, https bool) (*Repository, error)

func (*Repository) Clone

func (repo *Repository) Clone() error

Jump to

Keyboard shortcuts

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