repo

package
v0.0.0-...-2933d81 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func NewGit

func NewGit(dir string) *Git

func (*Git) LatestRevision

func (g *Git) LatestRevision() (string, error)

func (*Git) Tags

func (g *Git) Tags() ([]string, error)

func (*Git) Timestamp

func (g *Git) Timestamp(revision string) (string, error)

type LocalRepo

type LocalRepo struct {
	// contains filtered or unexported fields
}

func NewLocalRepo

func NewLocalRepo(vcs VCS) (*LocalRepo, error)

func (*LocalRepo) Version

func (p *LocalRepo) Version(usePath string) string

type VCS

type VCS interface {
	Tags() ([]string, error)
	LatestRevision() (string, error)
	Timestamp(string) (string, error)
}

Jump to

Keyboard shortcuts

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