repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 6 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 {
	Repositories `json:"repos"`
}

func (Config) IntoManager

func (c Config) IntoManager(vcs command.VCS) (m Manager)

func (*Config) Set

func (c *Config) Set(s string) (err error)

func (Config) String

func (c Config) String() (s string)

type Manager

type Manager struct {
	Repositories
	Vcs command.VCS
}

func NewManager

func NewManager(vcs command.VCS) (m Manager)

func (*Manager) AddRepo

func (m *Manager) AddRepo(r Repository)

func (*Manager) AddRepos

func (m *Manager) AddRepos(r ...Repository)

func (Manager) Status

func (m Manager) Status() (b []byte, err error)

type Repositories

type Repositories []Repository

type Repository

type Repository struct {
	Directory path.Dir `json:"directory"`
}

func New

func New(dir path.Dir) (r Repository)

func (*Repository) FromPath

func (r *Repository) FromPath(p path.Pather) (err error)

func (*Repository) Set

func (r *Repository) Set(s string) (err error)

func (*Repository) UnmarshalJSON

func (r *Repository) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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