Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Nov 17, 2024
1 parent 1ecb8ed commit 6e3f8b9
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (pmlc *PackageManagerLoginCommand) ServerDetails() (*config.ServerDetails,
func (pmlc *PackageManagerLoginCommand) Run() (err error) {
if pmlc.repoName == "" {
// Prompt the user to select a virtual repository that matches the package manager.
if err = pmlc.getRepositoryNameFromUserInteractively(); err != nil {
if err = pmlc.promptUserToSelectRepository(); err != nil {
return err
}
}
Expand Down Expand Up @@ -106,8 +106,8 @@ func (pmlc *PackageManagerLoginCommand) Run() (err error) {
return nil
}

// getRepositoryNameFromUserInteractively prompts the user to select a compatible virtual repository.
func (pmlc *PackageManagerLoginCommand) getRepositoryNameFromUserInteractively() error {
// promptUserToSelectRepository prompts the user to select a compatible virtual repository.
func (pmlc *PackageManagerLoginCommand) promptUserToSelectRepository() error {
// Map the package manager to its corresponding package type.
packageType, err := packageManagerToPackageType(pmlc.packageManager)
if err != nil {
Expand Down Expand Up @@ -233,8 +233,7 @@ func (pmlc *PackageManagerLoginCommand) configureDotnetNuget() error {
if pmlc.packageManager == project.Nuget {
toolchainType = bidotnet.Nuget
}
err = dotnet.RemoveSourceFromNugetConfigIfExists(toolchainType)
if err != nil {
if err = dotnet.RemoveSourceFromNugetConfigIfExists(toolchainType); err != nil {
return err
}
// Add the repository as a source in the NuGet configuration with credentials for authentication.
Expand Down

0 comments on commit 6e3f8b9

Please sign in to comment.