project

package
v0.0.0-...-9e45a68 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGitNotFound        = errors.New("looks like you don't have git installed")
	ErrNoOriginConfigured = errors.New("looks like you don't have a remote origin configured")
	ErrNotInRepo          = errors.New("looks like you are not executing halfpipe from within a git repo")
	ErrNoCommits          = errors.New("looks like you are executing halfpipe in a repo without commits, this is not supported")
)
View Source
var ErrHalfpipeFileMultiple = errors.New("found multiple halfpipe manifests")
View Source
var ErrHalfpipeFileNotFound = errors.New("could not find halfpipe manifest")

Functions

func BranchResolver

func BranchResolver() (branch string, err error)

func NewProjectResolver

func NewProjectResolver(fs afero.Afero) projectResolver

Types

type Data

type Data struct {
	BasePath         string
	RootName         string
	GitURI           string
	GitRootPath      string
	HalfpipeFilePath string
}

type GitBranchResolver

type GitBranchResolver func() (branch string, err error)

type Project

type Project interface {
	Parse(workingDir string, ignoreMissingHalfpipeFile bool, halfpipeFilenameOptions []string) (p Data, err error)
}

type RepoURIResolver

type RepoURIResolver func() (string, error)

Jump to

Keyboard shortcuts

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