Example #1
0
func index(dir, url string) error {
	chartRepo, err := repo.LoadChartRepository(dir, url)
	if err != nil {
		return err
	}

	return chartRepo.Index()
}
Example #2
0
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()
}