question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get RepositorySettingsImpl for a PackageType

See original GitHub issue

The PackageTypeImpl enum contains all supported repository types. Each RepositorySettingsImpl contains a reference to a value of this enum (e.g: MavenRepositorySettingsImpl#getPackageType.

So, it’s quite easy to get the PackageType for a given RepositorySettings object. Is it possible the other way around? I’m building a CLI application that takes the repository type as an argument. Based on that, I’d like to create the appropriate RepositorySettings object. Currently I have my own enum, similar to PackageTypeImpl that has all the corresponding RepositorySettingsImpls for each type.

It would be nice if this would be supported by the library out of the box, as this seems to be a quite common requirement.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eyalbe4commented, Dec 12, 2019

PR merge @dodie. Thank you!

0reactions
dodiecommented, Jan 30, 2020

Hi @eyalbe4 !

Are there plans regarding the next release of the library?

Thanks and cheers, David

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set a NuGet package type | Microsoft Learn
Dependency type packages add build- or run-time assets to libraries and applications, and can be installed in any project type (assuming they ...
Read more >
get-package-type - npm
Start using get-package-type in your project by running `npm i get-package-type`. There are 321 other projects in the npm registry using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found