internal

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFileWithContent

func CreateTempFileWithContent(content string) string

CreateTempFileWithContent creates a temporary file with the given content and returns its path. The caller is responsible for removing the file when done.

Types

type Level

type Level int
const (
	Info Level = iota
	Error
)

type TextFlash

type TextFlash struct {
	// contains filtered or unexported fields
}

TextFlash is used to temporarily display a message to the user.

func (TextFlash) Flash

func (t TextFlash) Flash(text string, level Level, duration time.Duration) tea.Cmd

func (TextFlash) Init

func (t TextFlash) Init() tea.Cmd

func (TextFlash) Update

func (t TextFlash) Update(msg tea.Msg) (TextFlash, tea.Cmd)

func (TextFlash) View

func (t TextFlash) View() string

type UpdateTextFlashMsg

type UpdateTextFlashMsg struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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