func index(dir, url string) error { chartRepo, err := repo.LoadChartRepository(dir, url) if err != nil { return err } return chartRepo.Index() }
func index(dir, url, mergeTo string) error { chartRepo, err := repo.LoadChartRepository(dir, url) if err != nil { return err } if mergeTo != "" { old, err := repo.LoadIndexFile(mergeTo) if err != nil { return err } return chartRepo.MergeIndex(old) } return chartRepo.Index() }