From 74cd5b383736c3a8d3d1b29409249aa4807624f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 3 Mar 2020 22:59:50 +0100 Subject: [PATCH] Use overridable `Confirm` --- command/repo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/command/repo.go b/command/repo.go index 2afe35831..29739c568 100644 --- a/command/repo.go +++ b/command/repo.go @@ -207,11 +207,7 @@ func repoCreate(cmd *cobra.Command, args []string) error { } } else if isTTY { doSetup := false - // TODO: use overridable Confirm - err := survey.AskOne(&survey.Confirm{ - Message: fmt.Sprintf("Create a local project directory for %s?", ghrepo.FullName(repo)), - Default: true, - }, &doSetup) + err := Confirm(fmt.Sprintf("Create a local project directory for %s?", ghrepo.FullName(repo)), &doSetup) if err != nil { return err }