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

Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman) #2738

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from

Conversation

sverdlov93
Copy link
Contributor

@sverdlov93 sverdlov93 commented Oct 25, 2024

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

image image image

PR Description

Title

Add PackageManagerLoginCommand for Configuring Package Managers in JFrog CLI

Description

This PR introduces the PackageManagerLoginCommand, a unified command for configuring package managers to use JFrog Artifactory. It enables registry setup and authentication across various project types, automatically handling tool-specific settings based on the selected project.

Supported Package Managers

  • npm: Configures registry and authentication in the .npmrc file.
  • Yarn: Sets up registry and authentication in the .yarnrc or .yarnrc.yml file.
  • Pip: Configures PyPI repository URL in the pip.conf file.
  • Pipenv: Sets the global index URL in the pip.conf file.
  • Poetry: Manages repository and authentication in the pyproject.toml file.
  • Go: Configures the GOPROXY (persistent) environment variable to use Artifactory.
  • NuGet: Adds repositories and authentication in the NuGet.config file.
  • dotnet: Configures repositories and authentication in the NuGet.config file.

Supported Auth Types

  • Token-based, Basic (username/password), and Anonymous.

Testing

  • Unit tests validate configuration updates for each package manager.

Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 changed the title Npm/Yarn login command Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman`) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman`) Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman) Nov 20, 2024
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
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.

1 participant