components

package
v0.0.0-...-05fba6c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEntryPicked = errors.New("no entry picked")

Functions

func ShowYNQuestionPrompt

func ShowYNQuestionPrompt(question string) bool

Types

type BlockPickEntry

type BlockPickEntry interface {
	QualifiedID() string
	Block() *graph.Block
	// Index of this entry in the BlockPickList
	Index() int
	// Len of the BlockPickList
	Len() int
}

BlockPickEntry is a single entry in the BlockPickList

func RenderBlockPicker

func RenderBlockPicker(entries BlockPickList, header string, pageSize, startIndex int) (BlockPickEntry, error)

type BlockPickList

type BlockPickList []BlockPickEntry

type NodePickResult

type NodePickResult struct {
	Node *graph.Node
}

func RenderNodesPicker

func RenderNodesPicker(entry *config.Entry, nodes []graph.Node, header string, pageSize, startIndex int) (*NodePickResult, error)

Jump to

Keyboard shortcuts

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