Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "tvshows <directory>", Short: "TV Shows batch formatting", Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { extensions, _ := cmd.Flags().GetStringArray("ext") tvShows, err := loadTVShows(media.WD, extensions) dryRun, _ := cmd.Flags().GetBool("dry-run") if err != nil { return err } if len(tvShows) == 0 { console.Success("Nothing to process") } else { printAll(media.WD, tvShows) if !dryRun { process(media.WD, tvShows, media.UID, media.GID) } } return nil }, }
Cmd is the TV Shows-specific format command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.