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 28, 2024
1 parent b6efb65 commit 978fad9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions general/login/login.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package login

import (
"fmt"
"github.com/jfrog/jfrog-cli-core/v2/common/commands"
"github.com/jfrog/jfrog-cli-core/v2/general"
"github.com/jfrog/jfrog-cli-core/v2/utils/config"
Expand Down Expand Up @@ -42,9 +43,13 @@ func newConfLogin() error {

func promptPlatformUrl() (string, error) {

Check failure on line 44 in general/login/login.go

View workflow job for this annotation

GitHub Actions / Static-Check

promptPlatformUrl - result 1 (error) is always nil (unparam)
var platformUrl string
ioutils.ScanFromConsole("Enter your JFrog Platform URL", &platformUrl, "")
if platformUrl == "" {
return "", errorutils.CheckErrorf("providing JFrog Platform URL is mandatory")
// Loop until a non-empty platformUrl is entered
for {
ioutils.ScanFromConsole("Enter your JFrog Platform URL", &platformUrl, "")
if platformUrl != "" {
break
}
fmt.Println("The JFrog Platform URL cannot be empty. Please try again.")
}
return platformUrl, nil
}
Expand Down

0 comments on commit 978fad9

Please sign in to comment.