git

package
v0.0.0-...-277eb20 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCorrectProject

func EnsureCorrectProject(owner, name, projectFilePath, repoURL string, out output.Outputer, an analytics.Dispatcher) error

func MoveFiles

func MoveFiles(src, dest string) error

Types

type Repo

type Repo struct {
}

Repo represents a git repository

func NewRepo

func NewRepo() *Repo

NewRepo returns a new repository

func (*Repo) CloneProject

func (r *Repo) CloneProject(owner, name, path string, out output.Outputer, an analytics.Dispatcher) error

CloneProject will attempt to clone the associalted public git repository for the project identified by <owner>/<name> to the given directory

type Repository

type Repository interface {
	CloneProject(owner, name, path string, out output.Outputer, an analytics.Dispatcher) error
}

Repository is the interface used to represent a version control system repository

Jump to

Keyboard shortcuts

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