libraries

package
v0.0.0-...-af3ad01 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetUserConfigBase = os.UserConfigDir
)
View Source
var ListCommand = &cli.Command{
	Name:  "list",
	Usage: "list libraries or audio files in those libraries",
	Subcommands: []*cli.Command{
		{
			Name:   "libraries",
			Usage:  "List all libraries",
			Action: listLibraries,
		},
		{
			Name:      "library",
			Usage:     "List the files in a library (use additional arguments to for library to list)",
			Action:    listFilesInLibrary,
			ArgsUsage: "*<library name>",
		},
	},
}
View Source
var (
	NewSoundLibrary = newSoundLibrary
)

Functions

func GetLocationDefault

func GetLocationDefault() string

Types

type SoundLibrary

type SoundLibrary interface {
	ListLibraries() ([]string, error)
	GetRandomFile(from []string) (string, error)
	ListFiles(library string) ([]string, error)
}

Jump to

Keyboard shortcuts

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