(ctx *cli.Context)
| 267 | } |
| 268 | |
| 269 | func NewDownloaderConfig(ctx *cli.Context) *downloader.Config { |
| 270 | return &downloader.Config{ |
| 271 | DownloadStart: ctx.GlobalInt64(flags.DownloadStart.Name), |
| 272 | DownloadDump: ctx.GlobalString(flags.DownloadDump.Name), |
| 273 | DownloadThreadNum: ctx.GlobalInt(flags.DownloadThreadNum.Name), |
| 274 | } |
| 275 | } |