repositoryLib

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepositoryUrl

func GetRepositoryUrl(provider, fullName string) string

func Register

func Register(repoID string) error

Types

type Info

type Info struct {
	FullName string
	ID       string

	Type RepositoryType

	DoClone bool
}

func (*Info) Clone

func (info *Info) Clone(project config.Project, url, branch string, embedded bool) (*git.Repository, error)

func (*Info) GetIDFromName

func (info *Info) GetIDFromName() error

func (*Info) GetNameFromID

func (info *Info) GetNameFromID() error

func (*Info) HasBeenCloned

func (info *Info) HasBeenCloned(project config.Project, provider string) bool

func (*Info) Open

func (info *Info) Open(project config.Project, url string) (*git.Repository, error)

func (*Info) Pull

func (info *Info) Pull(project config.Project, url string) (*git.Repository, error)

func (*Info) Push

func (info *Info) Push(project config.Project, message, url string) (*git.Repository, error)

type InfoTemplate

type InfoTemplate struct {
	RepositoryName string
	Info           templates.TemplateInfo
	Private        bool
}

type RepositoryType

type RepositoryType = string
const (
	WebsiteRepositoryType RepositoryType = "website"
	LibraryRepositoryType RepositoryType = "library"
)

Jump to

Keyboard shortcuts

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