cli

package
v0.0.0-...-f74485b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(cmdName string) (*cobra.Command, error)

func ProcessMovies

func ProcessMovies(l content.Library) error

func ProcessSeries

func ProcessSeries(l content.Library) error

func ProcessSpecialFiles

func ProcessSpecialFiles(indent int, s content.Series, folder string, files []string, pathsToDelete *[]string) error

func RenderVideoComparisonTable

func RenderVideoComparisonTable(srcVideo content.VideoFile, dstVideos []content.VideoFile, indent int)

todo change to accept array of videos and compare them

func ValidateParams

func ValidateParams(params []string) func(cmd *cobra.Command, args []string) error

Types

type FlagData

type FlagData struct {
	BaseSrcPath    string
	BaseDstPath    string
	Confirm        bool
	IgnoreExisting bool
}

func GetFlags

func GetFlags() FlagData

type TableRow

type TableRow struct {
	Name       string
	Value      func(v content.VideoFile) string
	Equal      func(v1, v2 content.VideoFile) bool
	BetterThan func(v1, v2 content.VideoFile) bool
}

Jump to

Keyboard shortcuts

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