Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultLang is the default language when searching subtitles.
DefaultLang = "ENG"
)
View Source
const Version = "0.3"
Version is the program's version. Yep.
Variables ¶
View Source
var NoSub = errors.New("No subtitles found!")
View Source
var RootCmd = &cobra.Command{ Use: "osdb", Short: "osdb is a command-line client for OpenSubtitles", Long: "Search and download subtitles from the command-line.", PersistentPreRun: func(c *cobra.Command, args []string) { paramLangs = strings.Split(paramLang, ",") }, Run: func(c *cobra.Command, args []string) { }, }
RootCmd is the main OSDB program command.
Functions ¶
func GetEnvLang ¶
func GetEnvLang() string
GetEnvLang checks OSDB_LANG env. var, to set the API client language.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.