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

command

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cmd Cmd) error

Types

type Cmd

type Cmd interface {
	Name() string
	Run(ctx context.Context) error
}

type Index

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

Index creates the metafind index file.

func NewIndex

func NewIndex(metafind, metafindConfig, musicRoot, dest string) *Index

func (Index) Name

func (Index) Name() string

func (*Index) Run

func (c *Index) Run(ctx context.Context) error

type Normalize

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

Normalize normalizes the metafind index as unicode strings.

func NewNormalize

func NewNormalize(dest, src string) *Normalize

func (Normalize) Name

func (Normalize) Name() string

func (*Normalize) Run

func (c *Normalize) Run(ctx context.Context) error

type Play

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

Play plays the playlist.

func NewPlay

func NewPlay(w io.Writer, mpv, playlist string, loop, dry bool) *Play

func (Play) Name

func (Play) Name() string

func (*Play) Run

func (c *Play) Run(ctx context.Context) error

type Query

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

Query queries music from the index, grep, shuffle and head.

func NewQuery

func NewQuery(
	metafind, grep string,
	query io.Reader,
	normalizedIndex string,
	listArgs, grepArgs []string,
	headCount int,
	shuffle bool,
	dest string,
) *Query

func (Query) Name

func (Query) Name() string

func (*Query) Run

func (c *Query) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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