git-bug: github.com/MichaelMure/git-bug/commands/select Index | Files

package _select

import "github.com/MichaelMure/git-bug/commands/select"

Index

Package Files

select.go

Variables

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

func Clear Uses

func Clear(repo *cache.RepoCache) error

Clear will clear the selected bug, if any

func ResolveBug Uses

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 Uses

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

Select will select a bug for future use

Package _select imports 10 packages (graph) and is imported by 1 packages. Updated 2020-07-14. Refresh now. Tools for package owners.