io

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SelectionPageSize = 20

Variables

View Source
var Logger *zerolog.Logger

Functions

func GetCheckboxes

func GetCheckboxes(headers []string, opts []string) ([]string, bool, error)

func GetYesNo

func GetYesNo(label string) bool

func InputKeywordForFilter

func InputKeywordForFilter(label string) string

func NewLogger

func NewLogger(isDebug bool)

func OutputResult

func OutputResult(functionHeader []string, functionData [][]string, csvOutputFilePath string) error

Types

type Filtered added in v0.15.0

type Filtered struct {
	Choices map[int]struct{}
	Prev    *Filtered
	Cursor  int
}

type UI added in v0.15.0

type UI struct {
	Choices    []string
	Headers    []string
	Cursor     int
	Selected   map[int]struct{}
	Filtered   *Filtered
	Keyword    string
	IsEntered  bool
	IsCanceled bool
}

func NewUI added in v0.15.0

func NewUI(choices []string, headers []string) *UI

func (*UI) Init added in v0.15.0

func (u *UI) Init() tea.Cmd

func (*UI) Update added in v0.15.0

func (u *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*UI) View added in v0.15.0

func (u *UI) View() string

Jump to

Keyboard shortcuts

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