_select

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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