Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Provide download functionality for documents #16

Merged
merged 7 commits into from Apr 13, 2020
Merged

Conversation

Zibby
Copy link
Contributor

@Zibby Zibby commented Feb 16, 2020

Description

Uses existing function to find a list of matching filenames, if only one
entry matches, downloads it to current dir, if there are multiple
matches provide an indexed list to select from

Motivation and Context

Addressing: #7

How Has This Been Tested?

Local testing against my selfhosted paperless server, using multiple file paths

Screenshots (if appropriate):

N/A

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project. (I hope this is correct.)

Copy link
Owner

@stgarf stgarf left a comment

Choose a reason for hiding this comment

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

Hey @Zibby, I appreciate your contribution to the project!

I have a few comments in the code but from what I checked out and tested it seems to work well so far. Go ahead and address those issues and we can get it merged in.

  1. git rm paperless-cli Remove the binary, we don't need to check it into git.
  2. Edit the VERSION file and bump the minor version, I guess we're at 0.7.0 now.
  3. Please go ahead and update README.md and add yourself to the authors/acknowledgements section.

paperless/downloadfile.go Outdated Show resolved Hide resolved
paperless/downloadfile.go Outdated Show resolved Hide resolved
paperless/downloadfile.go Outdated Show resolved Hide resolved
cmd/download.go Outdated Show resolved Hide resolved
Copy link
Owner

@stgarf stgarf left a comment

Choose a reason for hiding this comment

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

One more comment in cmd/download.go

@stgarf
Copy link
Owner

stgarf commented Mar 16, 2020

Oh hey @Zibby, I also just recently updated the go modules version dependencies, so make sure to git pull --rebase first :).

Zibby and others added 3 commits April 11, 2020 18:24
Addressing: stgarf#7

Uses existing function to find a list of matching filenames, if only one
entry matches, downloads it to current dir, if there are multiple
matches provide an indexed list to select from
@stgarf stgarf assigned stgarf and Zibby and unassigned stgarf Apr 13, 2020
@stgarf stgarf merged commit 81beffb into stgarf:master Apr 13, 2020
@stgarf
Copy link
Owner

stgarf commented Apr 13, 2020

Closes #7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I'd like to download the PDF(s) of a document(s)
2 participants