Use overridable Confirm
This commit is contained in:
parent
15b758aaa9
commit
74cd5b3837
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue