From a98c42e814f510b3f15aeef53c27519df3bf298f Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Tue, 15 Aug 2017 15:29:21 +0800 Subject: [PATCH] Added more output when `helm init`. Add more info for the repos that will be added when `helm init`. --- cmd/helm/init.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index cc70c45ba..e3c646d3d 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -335,6 +335,8 @@ func initStableRepo(cacheFile string, skipRefresh bool) (*repo.Entry, error) { return nil, fmt.Errorf("Looks like %q is not a valid chart repository or cannot be reached: %s", stableRepositoryURL, err.Error()) } + fmt.Fprintf(out, "Adding %s repo with URL: %s \n", stableRepository, stableRepositoryURL) + return &c, nil } @@ -351,6 +353,8 @@ func initLocalRepo(indexFile, cacheFile string) (*repo.Entry, error) { return nil, fmt.Errorf("%s must be a file, not a directory", indexFile) } + fmt.Fprintf(out, "Adding %s repo with URL: %s \n", localRepository, localRepositoryURL) + return &repo.Entry{ Name: localRepository, URL: localRepositoryURL,