func runDfget(dfgetLockPath, daemonSockPath string) error {
	logger.Infof("Version:\n%s", version.Version())

	// Dfget config values
	s, _ := yaml.Marshal(dfgetConfig)
	logger.Infof("client dfget configuration:\n%s", string(s))

	ff := dependency.InitMonitor(dfgetConfig.Verbose, dfgetConfig.PProfPort, dfgetConfig.Telemetry)
	defer ff()

	var (
		daemonClient client.DaemonClient
		err          error
	)

	if dfgetConfig.Pattern != constants.SourcePattern {
		logger.Info("start to check and spawn daemon")
		if daemonClient, err = checkAndSpawnDaemon(dfgetLockPath, daemonSockPath); err != nil {
			logger.Errorf("check and spawn daemon error: %v", err)
		} else {
			logger.Info("check and spawn daemon success")
		}
	}

	return dfget.Download(dfgetConfig, daemonClient)
}
// runDfget does some init operations and starts to download.
runDfget does some init operations and starts to download.
// runDfget does some init operations and starts to download .
func runDfget(dfgetLockPath, daemonSockPath string) error {
	logger.Infof("Version:\n%s", version.Version())
	s, _ := yaml.Marshal(dfgetConfig)
	logger.Infof("client dfget configuration:\n%s", string(s))
	ff := dependency.InitMonitor(dfgetConfig.Verbose, dfgetConfig.PProfPort, dfgetConfig.Telemetry)
	defer ff()
	var (
		daemonClient client.DaemonClient
		err          error
	)
	if dfgetConfig.Pattern != constants.SourcePattern {
		logger.Info("start to check and spawn daemon")
		if daemonClient, err = checkAndSpawnDaemon(dfgetLockPath, daemonSockPath); err != nil {
			logger.Errorf("check and spawn daemon error: %v", err)
		} else {
			logger.Info("check and spawn daemon success")
		}
	}
	return dfget.Download(dfgetConfig, daemonClient)
}
func runDfget ( dfgetLockPath , daemonSockPath string ) error { logger . Infof ( " \n " , version . Version ( ) ) s , _ := yaml . Marshal ( dfgetConfig ) logger . Infof ( " \n " , string ( s ) ) ff := dependency . InitMonitor ( dfgetConfig . Verbose , dfgetConfig . PProfPort , dfgetConfig . Telemetry ) defer ff ( ) var ( daemonClient client . DaemonClient err error ) if dfgetConfig . Pattern != constants . SourcePattern { logger . Info ( " " ) if daemonClient , err = checkAndSpawnDaemon ( dfgetLockPath , daemonSockPath ) ; err != nil { logger . Errorf ( " " , err ) } else { logger . Info ( " " ) } } return dfget . Download ( dfgetConfig , daemonClient ) }
runDfget does some init operations and starts to download.
runDfget does some init operations and starts to download .
// Dfget config values