mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-02-02 21:27:15 +08:00
pretty format output
This commit is contained in:
parent
fe60915147
commit
4ed3da6097
@ -181,7 +181,7 @@ func (dtu *DownloadTaskUnit) download() (err error) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
der.OnExecute(func() {
|
der.OnExecute(func() {
|
||||||
fmt.Printf("[%s] 下载开始\n\n", dtu.taskInfo.Id())
|
fmt.Printf("[%s] 下载开始\n", dtu.taskInfo.Id())
|
||||||
})
|
})
|
||||||
|
|
||||||
err = der.Execute()
|
err = der.Execute()
|
||||||
@ -396,7 +396,7 @@ func (dtu *DownloadTaskUnit) Run() (result *taskframework.TaskUnitRunResult) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("[%s] 将会下载到路径: %s\n\n", dtu.taskInfo.Id(), dtu.SavePath)
|
fmt.Printf("[%s] 将会下载到路径: %s\n", dtu.taskInfo.Id(), dtu.SavePath)
|
||||||
|
|
||||||
var ok bool
|
var ok bool
|
||||||
er := dtu.download()
|
er := dtu.download()
|
||||||
|
Loading…
Reference in New Issue
Block a user