issue

package
v0.0.0-...-cd374ef Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() error

Create creates a new issue

func Delete

func Delete(partialID string) error

Delete deletes a given issue

func Edit

func Edit(partialID string) error

Edit brings an editor to edit a given issue

func FetchTicket

func FetchTicket(id string) (*model.Ticket, error)

FetchTicket fetches ticket by id

func FindIDs

func FindIDs(partialID string) ([]string, error)

FindIDs looks up ids matching provides substring

func Init

func Init() error

Init initialises issue tracking in the current dir

func List

func List(states ...model.TicketState) ([]*model.Ticket, error)

List lists all issues

func Update

func Update(t *model.Ticket) error

Update updates a ticket

func WriteByPartialID

func WriteByPartialID(partialID string, w io.Writer) error

WriteByPartialID writes an issue given by partial ID to a given writer

Types

type MultipleResulsError

type MultipleResulsError struct {
	// PartialID that was used for this search
	PartialID string
	// Results that correspond to PartialID
	Results []string
}

MultipleResulsError returns when search yields more that one results when only one is expected

func NewMultipleResulsError

func NewMultipleResulsError(partialID string, results []string) *MultipleResulsError

NewMultipleResulsError returns a new instance of MultipleResulsError

func (*MultipleResulsError) Error

func (e *MultipleResulsError) Error() string

Error implements error interface

Jump to

Keyboard shortcuts

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