Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "download", Short: "download an item or collection", Run: func(c *cobra.Command, args []string) { Assert(len(args) > 0, "missing item identifier") p, _ := c.Flags().GetString("save-dir") cc, _ := c.Flags().GetInt("concurrency") nso, _ := c.Flags().GetBool("no-original") nsm, _ := c.Flags().GetBool("no-metadata") ysd, _ := c.Flags().GetBool("yes-derivative") if nso { sources = stringsu.Remove(sources, "original") } if nsm { sources = stringsu.Remove(sources, "metadata") } if ysd { sources = append(sources, "derivative") } d, _ := filepath.Abs(p) mbpp.Init(cc) dlItem(d, args[0], nil) mbpp.Wait() time.Sleep(time.Second) log.Println(mbpp.GetCompletionMessage()) }, }
Cmd is the cobra.Command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.