Skip to content

Conversation

@johannesduesing
Copy link

Reason for this PR
As described in #44 and #43, Delphi users may want to download the artifacts that they searched for using the CLI. While a CSV export of artifact information (GAV) is already possible, users still have to download relevant artifacts, including .pom and .jar files, themselves.

Changes in this PR
Added new CLI options to enable users to download .pom and / or .jar files for their search results. These options are valid for the search and the retrieve command.

  • --output: Must point to an existing folder. A new subfolder (timestamp-named) will be created inside this directory, in which the files will be stored. If not set, no files will be downloaded.

  • --outputmode: Must be either JarOnly, PomOnly or All. Specifies what files are downloaded and stored for each search / retrieve result. Defaults to PomOnly. Does not have any effect if --output is not set.

@johannesduesing johannesduesing added this to the 0.9.6 milestone Jun 16, 2020
@johannesduesing johannesduesing requested a review from bhermann June 16, 2020 12:50
@johannesduesing johannesduesing self-assigned this Jun 16, 2020
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
9.1% 9.1% Duplication

Copy link
Member

@bhermann bhermann left a comment

Choose a reason for hiding this comment

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

Code looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a download feature to the CLI's retrieve feature Add download feature to CLI's search feature

3 participants