code: func getClient(cCmd *cobra.Command) (client.API, error) {
  	clientDriver, _ := cmdFleet.PersistentFlags().GetString("driver")
  
  	switch clientDriver {
  	case clientDriverAPI:
  		return getHTTPClient(cCmd)
  	case clientDriverEtcd:
  		return getRegistryClient(cCmd)
  	}
  
  	return nil, fmt.Errorf("unrecognized driver %q", clientDriver)
  }
docs: // getClient initializes a client of fleet based on CLI flags