Help us shape the future of Go! Take the 2026 Go Developer Survey

metadataedit

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackMsg

type BackMsg struct{}

BackMsg requests returning to the previous screen.

type Model

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

Model is the bubbletea model for the metadata editor screen.

func New

func New(styles ui.Styles, item abs.LibraryItem) Model

New creates a metadata editor for a library item.

func NewEpisode

func NewEpisode(styles ui.Styles, item abs.LibraryItem, episode abs.PodcastEpisode) Model

NewEpisode creates a metadata editor for a podcast episode.

func (Model) Focused

func (m Model) Focused() int

Focused returns the focused field index for tests.

func (Model) Init

func (m Model) Init() tea.Cmd

Init returns the initial command.

func (Model) MatchesBookSave

func (m Model) MatchesBookSave(itemID string, generation uint64) bool

MatchesBookSave reports whether a save result belongs to this editor instance.

func (Model) MatchesEpisodeSave

func (m Model) MatchesEpisodeSave(itemID, episodeID string, generation uint64) bool

MatchesEpisodeSave reports whether a save result belongs to this editor instance.

func (Model) SaveError

func (m Model) SaveError() error

SaveError returns the last save error.

func (Model) Saving

func (m Model) Saving() bool

Saving reports whether a save is in progress.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize updates terminal dimensions.

func (Model) Update

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

Update handles metadata edit messages.

func (Model) ValidationError

func (m Model) ValidationError() string

ValidationError returns the current validation error.

func (Model) View

func (m Model) View() string

View renders the metadata editor screen.

type SaveCmd

type SaveCmd struct {
	ItemID     string
	Generation uint64
	Request    abs.UpdateMediaRequest
}

SaveCmd requests saving edited metadata to ABS.

type SaveEpisodeCmd

type SaveEpisodeCmd struct {
	ItemID     string
	EpisodeID  string
	Generation uint64
	Request    abs.UpdatePodcastEpisodeRequest
}

SaveEpisodeCmd requests saving edited podcast episode metadata to ABS.

type SavedEpisodeMsg

type SavedEpisodeMsg struct {
	ItemID     string
	EpisodeID  string
	Generation uint64
	Item       *abs.LibraryItem
	Err        error
}

SavedEpisodeMsg reports the result of a podcast episode metadata save.

type SavedMsg

type SavedMsg struct {
	ItemID     string
	Generation uint64
	Item       *abs.LibraryItem
	Err        error
}

SavedMsg reports the result of a metadata save.

Jump to

Keyboard shortcuts

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