We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 814c788 commit d40ab65Copy full SHA for d40ab65
cmd/download.go
@@ -42,11 +42,15 @@ func newDownloadCmd(output io.Writer) *cobra.Command {
42
}
43
44
dm := download.NewDownloadManager(downloader, download.DefaultRetryPolicy())
45
- return dm.Download(
46
- cmd.Context(),
47
- download.WithSegmentSize(opts.segSize),
48
- download.WithNumberOfSegments(opts.segCount),
49
- )
+
+ fmt.Println("Downloading ...")
+ err = dm.Download(cmd.Context(), download.WithSegmentSize(opts.segSize), download.WithNumberOfSegments(opts.segCount))
+ if err != nil {
+ return err
50
+ }
51
+ fmt.Println("Download completed.")
52
53
+ return nil
54
},
55
56
0 commit comments