ui

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateNamesWithCurrent

func AnnotateNamesWithCurrent(names []string, cmp []bool) []string

AnnotateNamesWithCurrent annotates list of names with information whether the given entry is the current one.

func DisplayAndExitOnError

func DisplayAndExitOnError(err error)

DisplayAndExitOnError (if the provided error is not nil) prints the given error to stderr and exits (with exit code 1).

func ListToNames

func ListToNames(reg string, files []string) []string

ListToNames converts the provided list of files in registry and the given comparison results to list of names.

func SelectPrompt

func SelectPrompt(reg string, msg string, hash []byte) (string, error)

SelectPrompt will display the select prompt with the list of entries in the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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