Add Zeno get list command for archiving URLs from files#514
Merged
Conversation
- Created get_list.go with support for local and remote files - Added helper functions to read URLs from files (supporting comments and empty lines) - Registered list command in get.go - Added e2e test for the list command - Updated e2e package with helper functions for list command testing Co-authored-by: NGTmeaty <2244519+NGTmeaty@users.noreply.github.com>
The MinimumNArgs(1) already ensures at least one argument is provided Co-authored-by: NGTmeaty <2244519+NGTmeaty@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add command to archive based on a list
Add Oct 31, 2025
Zeno get list command for archiving URLs from files
NGTmeaty
reviewed
Oct 31, 2025
- Add missing urls.txt test file with multiple URLs - Update command Use field to specify FILE|URL - Set default user agent for remote file downloads - Enhance test to verify all URLs from list are archived Co-authored-by: NGTmeaty <2244519+NGTmeaty@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #514 +/- ##
==========================================
- Coverage 56.61% 56.42% -0.19%
==========================================
Files 130 131 +1
Lines 6481 6570 +89
==========================================
+ Hits 3669 3707 +38
- Misses 2448 2488 +40
- Partials 364 375 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
NGTmeaty
approved these changes
Oct 31, 2025
NGTmeaty
left a comment
Collaborator
There was a problem hiding this comment.
Code looks good and tests are passing. I have tested locally and it works correctly.
willmhowes
requested changes
Nov 5, 2025
| if userAgent == "" { | ||
| userAgent = "Mozilla/5.0 (compatible; Zeno)" | ||
| } | ||
| req.Header.Set("User-Agent", userAgent) |
Collaborator
There was a problem hiding this comment.
The UA string should be generated to match whatever Zeno would generate by default. Okay to fix in a separate issue.
Comment on lines
+138
to
+146
| // Read file line by line | ||
| scanner := bufio.NewScanner(resp.Body) | ||
| for scanner.Scan() { | ||
| line := strings.TrimSpace(scanner.Text()) | ||
| if line == "" || strings.HasPrefix(line, "#") { | ||
| continue | ||
| } | ||
| urls = append(urls, line) | ||
| } |
Collaborator
There was a problem hiding this comment.
This code chunk appears twice (also on lines 97-104), should we refactor into it's own function?
willmhowes
approved these changes
Nov 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementing
Zeno get listcommand to archive URLs from a fileSummary
Successfully implemented the
Zeno get listcommand that allows archiving URLs from text file(s).Features
Testing
Recent Changes
Addressed PR review feedback:
urls.txttest file with multiple URLs[FILE|URL...]Usage
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.