git

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository string

Repository represents a directory containing a git repository

func (Repository) ListTags

func (repo Repository) ListTags() (Tags, error)

ListTags for a new repository

func (Repository) Pull

func (repo Repository) Pull() error

Pull from remote repository

func (Repository) ToString

func (repo Repository) ToString() string

ToString returns the string representation of the git repository

type Tags

type Tags []string

Tags for a git repository

func (Tags) Filter

func (tags Tags) Filter(expression string) []string

Filter for a new repository

func (Tags) Latest

func (tags Tags) Latest() (string, error)

Latest for a new repository

func (Tags) LatestStable

func (tags Tags) LatestStable() (string, error)

LatestStable for a new repository

Jump to

Keyboard shortcuts

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