helpers

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = colors{
	Grey:   "#808080",
	Purple: "#CC00CC",
}
View Source
var Keys = KeyMap{
	Up: key.NewBinding(
		key.WithKeys("up", "k"),
		key.WithHelp("↑/k", "up "),
	),
	Down: key.NewBinding(
		key.WithKeys("down", "j"),
		key.WithHelp("↓/j", "down "),
	),
	Help: key.NewBinding(
		key.WithKeys("?"),
		key.WithHelp("?", "help "),
	),
	Quit: key.NewBinding(
		key.WithKeys("ctrl+c"),
		key.WithHelp("ctrl+c", "quit "),
	),
	Enter: key.NewBinding(
		key.WithKeys("enter"),
		key.WithHelp("↵", "confirm "),
	),
	Escape: key.NewBinding(
		key.WithKeys("esc"),
		key.WithHelp("esc", "back "),
	),
	Tab: key.NewBinding(
		key.WithKeys("tab"),
		key.WithHelp("tab", "next "),
	),
	ShiftTab: key.NewBinding(
		key.WithKeys("shift+tab"),
		key.WithHelp("shift+tab", "prev "),
	),
}
View Source
var ResourceIDs = resourceIDs{
	CreateAppSyncDataSource: "create_app_sync_data_source",
	CreateAppSyncAPI:        "create_app_sync_api",
}
View Source
var ResourceNames = map[string]string{
	ResourceIDs.CreateAppSyncDataSource: "Create data source",
	ResourceIDs.CreateAppSyncAPI:        "Create API",
}

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Up       key.Binding
	Down     key.Binding
	Help     key.Binding
	Quit     key.Binding
	Enter    key.Binding
	Escape   key.Binding
	Tab      key.Binding
	ShiftTab key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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