Documentation ¶
Index ¶
- type Can
- type Job
- type Jobs
- type Rename
- type SimpleOutput
- func (s *SimpleOutput) AtomicFlush(cb func(ui.AtomicOutput))
- func (s *SimpleOutput) Err(e error)
- func (s *SimpleOutput) Flush()
- func (s *SimpleOutput) SetSongs(l []ui.Song)
- func (s *SimpleOutput) SetText(str string)
- func (s *SimpleOutput) SetTitle(title string)
- func (s *SimpleOutput) SetView(view ui.View)
- type State
- type StateData
- func (s *StateData) Can(what Can) bool
- func (s *StateData) Confirm(sec string) error
- func (s *StateData) SetCan(what ...Can)
- func (s *StateData) SetConfirm(view ui.View, cb func()) (sec string)
- func (s *StateData) SetView(v ui.View, title string)
- func (s *StateData) Title() string
- func (s *StateData) View() ui.View
- type UI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleOutput ¶
type SimpleOutput struct {
// contains filtered or unexported fields
}
func NewSimpleOutput ¶
func NewSimpleOutput(w io.Writer) *SimpleOutput
func (*SimpleOutput) AtomicFlush ¶
func (s *SimpleOutput) AtomicFlush(cb func(ui.AtomicOutput))
func (*SimpleOutput) Err ¶
func (s *SimpleOutput) Err(e error)
func (*SimpleOutput) Flush ¶
func (s *SimpleOutput) Flush()
func (*SimpleOutput) SetSongs ¶
func (s *SimpleOutput) SetSongs(l []ui.Song)
func (*SimpleOutput) SetText ¶
func (s *SimpleOutput) SetText(str string)
func (*SimpleOutput) SetTitle ¶
func (s *SimpleOutput) SetTitle(title string)
func (*SimpleOutput) SetView ¶
func (s *SimpleOutput) SetView(view ui.View)
type StateData ¶
type StateData struct { Query string QueryOfResult string QueryOwn string QueryOfOwnResult string Playlist string Songs []collection.Song External []collection.Song Search []*youtube.Result LocalSongs []*collection.SearchResult Rename *Rename // contains filtered or unexported fields }
func (*StateData) SetConfirm ¶ added in v0.9.5
type UI ¶
func New ¶
func New( output ui.Output, log ui.ErrorReporter, parser ui.Parser, p *player.Player, c *collection.Collection, q *collection.Queue, acoustid *acoustid.Client, ) *UI
func (*UI) SetExternal ¶
func (u *UI) SetExternal(title string, ext []collection.Song)
Click to show internal directories.
Click to hide internal directories.