tag

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Obj

type Obj struct {
	Git git.Git
}

Obj is the data structure struct for the tag package

func (Obj) List

func (t Obj) List() ([]string, error)

List returns a list of git tags

func (Obj) ListWithArgs

func (t Obj) ListWithArgs(args []string) ([]string, error)

ListWithArgs returns a list of git tags and allows to pass optional args to the git command

func (Obj) SortedList

func (t Obj) SortedList(sortKey string) ([]string, error)

SortedList returns list of git tags and passes the --sort= flag to the git command. This needs to be set by parameter.

type Tag

type Tag interface {
	List() ([]string, error)
	ListWithArgs(args []string) ([]string, error)
	SortedList(sortKey string) ([]string, error)
}

Tag is the interface for the tag package

func New

func New(g git.Git) Tag

New returns a new intance of Tag interface

Jump to

Keyboard shortcuts

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