Back to

Package _select

v0.0.0 (f3304bd)
Latest Go to latest
Published: Jul 9, 2020 | License: GPL3 | Module:


Package Files


var ErrNoValidId = errors.New("you must provide a bug id or use the \"select\" command first")

func Clear

func Clear(repo *cache.RepoCache) error

Clear will clear the selected bug, if any

func ResolveBug

func ResolveBug(repo *cache.RepoCache, args []string) (*cache.BugCache, []string, error)

ResolveBug first try to resolve a bug using the first argument of the command line. If it fails, it fallback to the select mechanism.

Returns: - the bug if any - the new list of command line arguments with the bug prefix removed if it

has been used

- an error if the process failed

func Select

func Select(repo *cache.RepoCache, id entity.Id) error

Select will select a bug for future use

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier