Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "bilisubdl [id] [flags]", Run: func(cmd *cobra.Command, args []string) { var err error switch { case listLang: err = RunListLanguage(args[0]) case listSection: err = RunListSection(args[0]) case timeline != "": err = RunTimeline() case search != "": err = RunSearch() case dlepisode: err = RunDlEpisode(args) default: for _, s := range args { err := Run(s) if err != nil { fmt.Fprintln(os.Stderr, "ID:", s, err) } } } if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } }, Example: "bilisubdl 37738 1042594 -l th\nbilisubdl 37738 --list-subs\nbilisubdl --timeline=sun", }
Functions ¶
func RunDlEpisode ¶ added in v1.7.0
func RunListLanguage ¶ added in v1.6.0
func RunListSection ¶ added in v1.6.0
func RunTimeline ¶ added in v1.4.0
func RunTimeline() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.