code: func Initialize(home helmpath.Home, out io.Writer, skipRefresh bool, settings helm_env.EnvSettings, stableRepositoryURL, localRepositoryURL string) error {
  	if err := ensureDirectories(home, out); err != nil {
  		return err
  	}
  	if err := ensureDefaultRepos(home, out, skipRefresh, settings, stableRepositoryURL, localRepositoryURL); err != nil {
  		return err
  	}
  
  	return ensureRepoFileFormat(home.RepositoryFile(), out)
  }
docs: // Initialize initializes local config
  //
  // Returns an error if the command failed.