Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicOutput ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (Command) Type ¶
func (c Command) Type() CommandType
type CommandParser ¶
type CommandParser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser() *CommandParser
func (*CommandParser) Alias ¶
func (c *CommandParser) Alias(t CommandType, a ArgAmount, help []string, command ...string)
func (*CommandParser) Help ¶
func (c *CommandParser) Help() Help
func (*CommandParser) Parse ¶
func (c *CommandParser) Parse(input string) []Command
type CommandType ¶
type CommandType int
const ( CmdNone CommandType = iota CmdHelp CmdPlay CmdPause CmdPauseToggle CmdNext CmdPrev CmdSetSongIndex CmdMove CmdSearch CmdPlaylistAdd CmdPlaylistDelete CmdSongAdd CmdSongDelete CmdSeek CmdQueue CmdQueueAfter CmdQueueClear CmdQueueShuffle CmdViewQueue CmdViewPlaylist CmdViewPlaylists CmdSearchOwn CmdVolume CmdScrape CmdJobs CmdCancelJob CmdMeta CmdConfirm CmdProblematics )
type ErrorReporter ¶
type ErrorReporter interface {
Err(error)
}
func NewLogErrorReporter ¶
func NewLogErrorReporter(l Printlner) ErrorReporter
type HelpEntry ¶
type HelpEntry struct { Type CommandType Args ArgAmount Cmds []string Help []string }
type LogErrorReporter ¶
type LogErrorReporter struct {
Printlner
}
func (*LogErrorReporter) Err ¶
func (l *LogErrorReporter) Err(err error)
type Output ¶
type Output interface {
AtomicFlush(func(AtomicOutput))
}
type Printlner ¶
type Printlner interface { Println(...interface{}) Printf(string, ...interface{}) }
type SimpleUISong ¶
type SimpleUISong struct { BaseSong // contains filtered or unexported fields }
func (SimpleUISong) Active ¶
func (s SimpleUISong) Active() bool
func (SimpleUISong) Extra ¶ added in v0.12.0
func (s SimpleUISong) Extra() string
Click to show internal directories.
Click to hide internal directories.