_select

package
v0.0.0-...-8ec1dd0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValidId = errors.New("you must provide a bug id")

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 string) 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