Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preliminary repo create command #547

Merged
merged 9 commits into from
Mar 3, 2020
Prev Previous commit
Use overridable Confirm
  • Loading branch information
mislav committed Mar 3, 2020
commit 74cd5b383736c3a8d3d1b29409249aa4807624f2
6 changes: 1 addition & 5 deletions command/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down