File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11package login
22
33import (
4+ "fmt"
45 "github.com/jfrog/jfrog-cli-core/v2/common/commands"
56 "github.com/jfrog/jfrog-cli-core/v2/general"
67 "github.com/jfrog/jfrog-cli-core/v2/utils/config"
@@ -42,9 +43,13 @@ func newConfLogin() error {
4243
4344func promptPlatformUrl () (string , error ) {
4445 var platformUrl string
45- ioutils .ScanFromConsole ("Enter your JFrog Platform URL" , & platformUrl , "" )
46- if platformUrl == "" {
47- return "" , errorutils .CheckErrorf ("providing JFrog Platform URL is mandatory" )
46+ // Loop until a non-empty platformUrl is entered
47+ for {
48+ ioutils .ScanFromConsole ("Enter your JFrog Platform URL" , & platformUrl , "" )
49+ if platformUrl != "" {
50+ break
51+ }
52+ fmt .Println ("The JFrog Platform URL cannot be empty. Please try again." )
4853 }
4954 return platformUrl , nil
5055}
You can’t perform that action at this time.
0 commit comments