config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Remote       string          `json:"remote"`
	Dots         []string        `json:"dots"`
	Repositories []GitRepository `json:"repos"  mapstructure:"repos"`
}

func (*Config) Paths

func (c *Config) Paths() []string

Collect all paths from [Config.Dots] & [Config.Repositories] into a single slice.

func (*Config) ResolvePaths

func (c *Config) ResolvePaths()

Iterates over [Config.Dots] & [Config.Repositories] and calls paths.Resolve on each.

func (*Config) String

func (c *Config) String() string

type GitRepository

type GitRepository struct {
	Remote string `json:"remote"`
	Path   string `json:"path"`
}

Jump to

Keyboard shortcuts

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