From 00b2777a147a7d94d82bebd80b9878e21591e756 Mon Sep 17 00:00:00 2001 From: ShubhankarKG Date: Thu, 20 Aug 2020 14:10:18 +0530 Subject: [PATCH] Change visibility strings to Sentence case --- pkg/cmd/repo/create/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/repo/create/create.go b/pkg/cmd/repo/create/create.go index 5abd9a96f..08f16c0bd 100644 --- a/pkg/cmd/repo/create/create.go +++ b/pkg/cmd/repo/create/create.go @@ -346,7 +346,7 @@ func getVisibility() (string, error) { Name: "repoVisibility", Prompt: &survey.Select{ Message: "Visibility", - Options: []string{"PUBLIC", "PRIVATE", "INTERNAL"}, + Options: []string{"Public", "Private", "Internal"}, }, } qs = append(qs, getVisibilityQuestion) @@ -360,5 +360,5 @@ func getVisibility() (string, error) { return "", err } - return answer.RepoVisibility, nil + return strings.ToUpper(answer.RepoVisibility), nil }