chop

package
v0.0.0-...-72bed2c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdChop

func NewCmdChop(f *cmdutil.Factory) *cobra.Command

Types

type AudioChopAlbum

type AudioChopAlbum struct {
	Artist      string           `json:"artist"`
	Genre       string           `json:"genre"`
	Album       string           `json:"album"`
	Tracks      []AudioChopTrack `json:"tracks"`
	TotalTracks int              `json:"totalTracks"`
	Year        int              `json:"year"`
}

type AudioChopTrack

type AudioChopTrack struct {
	// TODO: should automatically be parsed in flag.Time
	From string `json:"from"`
	// TODO: should automatically be parsed in flag.Time
	To          string `json:"to"`
	Title       string `json:"title"`
	Filename    string `json:"fileName"`
	TrackNumber int    `json:"trackNumber"`
}

type Command

type Command struct {
	FilePath              string
	ThumbnailPath         string
	MetadataPath          string
	Metadata              AudioChopAlbum
	IgnoreFileValidations bool
}

func (*Command) AddMetadata

func (c *Command) AddMetadata(f *cmdutil.Factory, container docker.Container) []error

func (*Command) ContainerConfig

func (c *Command) ContainerConfig() docker.ContainerConfig

func (*Command) DockerCommand

func (*Command) DockerCommand() docker.Command

func (*Command) Execs

func (c *Command) Execs(f *cmdutil.Factory, container docker.Container) []error

func (*Command) SliceTrack

func (c *Command) SliceTrack(f *cmdutil.Factory, container docker.Container) []error

func (*Command) Validate

func (c *Command) Validate() error

func (*Command) ValidateFiles

func (c *Command) ValidateFiles() error

Jump to

Keyboard shortcuts

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