Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can now specify what URLs you want to download in a file #541

Merged
merged 8 commits into from
Oct 29, 2019
Merged

You can now specify what URLs you want to download in a file #541

merged 8 commits into from
Oct 29, 2019

Conversation

Stegosawr
Copy link
Contributor

@Stegosawr Stegosawr commented Oct 23, 2019

Closes #529

Merged all commits into one
@iawia002

@iawia002
Copy link
Owner

the test failed:

    --- FAIL: TestParsingFile/start_from_x (0.10s)
        utils_test.go:633: Got: 608 - want: 632

utils/utils.go Outdated
@@ -154,9 +154,6 @@ func ParseInputFile(r io.Reader) []string {
for scanner.Scan() {
totalLines++
universalURL := strings.TrimSpace(scanner.Text())
if universalURL == "" {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you remove this, there might be empty strings in temp

Copy link
Contributor Author

@Stegosawr Stegosawr Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I know. But now that you can choose what urls you want, so this shouldn't be a problem. Also if I think about a file filled with url there shouldn't be any empty lines anyway?

@codecov
Copy link

codecov bot commented Oct 26, 2019

Codecov Report

Merging #541 into master will increase coverage by 3.52%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #541      +/-   ##
==========================================
+ Coverage   69.95%   73.47%   +3.52%     
==========================================
  Files           4        4              
  Lines         203      230      +27     
==========================================
+ Hits          142      169      +27     
  Misses         59       59              
  Partials        2        2
Impacted Files Coverage Δ
utils/utils.go 83.12% <100%> (+3.42%) ⬆️
utils/download.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4fde10...485f2ef. Read the comment docs.

Copy link
Owner

@iawia002 iawia002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks, one last thing, is the title misspelled? You can now ...?

@Stegosawr Stegosawr changed the title You can no specify what URLs you want to download in a file You can now specify what URLs you want to download in a file Oct 28, 2019
@Stegosawr
Copy link
Contributor Author

I am so sorry... fixed it now. Thanks for pointing it out and all the feedback you gave me :>

@iawia002 iawia002 merged commit be99311 into iawia002:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature-request] start and end flags for a file
2 participants