feat(download): add status messages and -v verbose flag #150
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/pget!150
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/status-messages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add
-vverbose flag for worker-level detail (retries, completions, skips). On successful download, always print a completion summary with file size, elapsed time, and average speed.Why
Users need visibility into what workers are doing during problematic downloads (-v). Every download should show a final summary line for quick confirmation of what was downloaded and how fast.
Testing
-vshows worker retry/complete messages on stderr-v, worker messages hidden, only progress bar + summary showngo build ./...,go vet ./...,golangci-lint run— all cleanBreaking Changes
None
Notes
Verbosefmethod — only prints when-vis set and not-qVerbosefdownloaded 3.8GB in 2m30s (25.3MB/s)humanByteshelper in download.go for human-readable sizesCloses #75, #73, #74
Review: APPROVED
Verification
go vet ./...— ✅ passesgo build ./...— ✅ passesgolangci-lint v2 run ./...— ✅ 0 issuesChanges
internal/logging/logging.go—verbosefield,Verbosefmethod (only prints when verbose=true and quiet=false)internal/config/config.go—Verbose bool,-vflag,PGET_VERBOSEenv varinternal/downloader/download.go— worker messages useVerbosef;humanByteshelper; completion summary with size/time/speedcmd/pget/main.go— passescfg.Verbosetologging.NewKey behavior
-v: shows worker retry/skip/complete messages-v: only progress bar + final summary shown-q: suppresses both (quiet takes precedence over verbose)downloaded 3.8GB in 2m30s (25.3MB/s)Closes #73, #74, #75 on merge.