Permit -y flag to create local directory as well
This commit is contained in:
parent
011f30977a
commit
d3a44f827f
1 changed files with 6 additions and 5 deletions
|
|
@ -224,12 +224,13 @@ func createRun(opts *CreateOptions) error {
|
|||
fmt.Fprintf(stderr, "%s Added remote %s\n", greenCheck, remoteURL)
|
||||
}
|
||||
} else if isTTY {
|
||||
doSetup := false
|
||||
err := prompt.Confirm(fmt.Sprintf("Create a local project directory for %s?", ghrepo.FullName(repo)), &doSetup)
|
||||
if err != nil {
|
||||
return err
|
||||
doSetup := opts.ConfirmSubmit
|
||||
if !doSetup {
|
||||
err := prompt.Confirm(fmt.Sprintf("Create a local project directory for %s?", ghrepo.FullName(repo)), &doSetup)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if doSetup {
|
||||
path := repo.Name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue