list

package
v0.55.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyMap

func NewKeyMap() list.KeyMap

NewKeyMap returns a set of keybindings.

Types

type DefaultDelegate

type DefaultDelegate struct {
	list.DefaultDelegate
}

type Delegate

type Delegate struct {
	DefaultDelegate
	*DelegateKeyMap
}

func NewDelegate

func NewDelegate() *Delegate

type DelegateKeyMap

type DelegateKeyMap struct {
	// Select module
	Choose key.Binding

	// Run Scaffold command
	Scaffold key.Binding
}

DelegateKeyMap defines keybindings. It satisfies to the help.DelegateKeyMap interface, which is used to render the menu.

func NewDelegateKeyMap

func NewDelegateKeyMap() *DelegateKeyMap

NewDelegateKeyMap returns a set of keybindings.

func (DelegateKeyMap) FullHelp

func (d DelegateKeyMap) FullHelp() [][]key.Binding

Additional full help entries. This satisfies the help.KeyMap interface and is entirely optional.

func (DelegateKeyMap) ShortHelp

func (d DelegateKeyMap) ShortHelp() []key.Binding

Additional short help entries. This satisfies the help.KeyMap interface and is entirely optional.

type Model

type Model struct {
	*list.Model
	// contains filtered or unexported fields
}

func NewModel

func NewModel(modules module.Modules, quitFn func(error), opts *options.TerragruntOptions) *Model

func (Model) Init

func (model Model) Init() tea.Cmd

Init implements bubbletea.Model.Init

func (Model) Update

func (model Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements bubbletea.Model.Update

Jump to

Keyboard shortcuts

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