scope

package
v0.0.0-...-e77751c Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessScopeInput

func ProcessScopeInput(value string, saver ScopeSaver) (int64, error)

Types

type ScopeKeymap

type ScopeKeymap struct{}

func (ScopeKeymap) FullHelp

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

func (ScopeKeymap) ShortHelp

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

type ScopeModel

type ScopeModel struct {
	Input        textinput.Model
	Help         help.Model
	Keymap       ScopeKeymap
	ErrorMessage string // User-facing error message
}

func NewScopeModel

func NewScopeModel(entry, selectedType string, store *store.Store) ScopeModel

func (ScopeModel) GetValue

func (m ScopeModel) GetValue() string

func (ScopeModel) Init

func (m ScopeModel) Init() tea.Cmd

func (ScopeModel) Update

func (m ScopeModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ScopeModel) View

func (m ScopeModel) View() string

type ScopeSaver

type ScopeSaver interface {
	SaveScope(store.Scope) (int64, error)
}

Jump to

Keyboard shortcuts

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