templates

package
v0.0.0-...-73d97a9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderPrompt

func RenderPrompt() (string, error)

func RenderSelect

func RenderSelect(label string, options []DialogOption, maxOptions int) interface{}

RenderSelect displays a prompt and returns the selected option.

Types

type DialogOption

type DialogOption struct {
	Name        string
	Value       interface{}
	Description string
}

DialogOption represents an option in a dialog.

Jump to

Keyboard shortcuts

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