improving client/server info command
This commit is contained in:
		@@ -1,6 +1,8 @@
 | 
			
		||||
package clientcmd
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
 | 
			
		||||
	clientconfig "github.com/deranjer/gvc/client/clientconfig"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@@ -9,10 +11,11 @@ func RefreshContent(conf *clientconfig.Gvcconfig) error {
 | 
			
		||||
	remotes := conf.Remotes
 | 
			
		||||
	for _, remote := range remotes {
 | 
			
		||||
		if remote.Default {
 | 
			
		||||
			err := PingServer(remote.Name, conf.CurrentBranch, conf)
 | 
			
		||||
			connectionString, err := FindServer(remote.Name, conf.CurrentBranch, conf)
 | 
			
		||||
			if err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			fmt.Println("Connection String; ", connectionString) //TODO: Remove not needed
 | 
			
		||||
			//TODO: Now refresh content
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user