deleted scratch pad of commit

This commit is contained in:
Benjamin Chadwick 2022-03-07 21:32:51 -08:00 committed by Sam Coe
parent ca5e9a49b5
commit a140bea9bf
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -1,43 +0,0 @@
package base
import (
"net/http"
"github.com/AlecAivazis/survey/v2"
"github.com/cli/cli/v2/context"
"github.com/cli/cli/v2/internal/ghrepo"
"github.com/cli/cli/v2/pkg/iostreams"
"github.com/cli/cli/v2/pkg/prompt"
"github.com/cli/cli/v2/api"
)
func GetAllResolvedRemotes(Remotes func() (context.Remotes, error), HttpClient func() (*http.Client, error)) ([]func(ghrepo.Interface, error), error) {
// return []func() (ghrepo.Interface, error) {
httpClient, err := HttpClient()
if err != nil {
return nil, err
}
apiClient := api.NewClientFromHTTP(httpClient)
remotes, err := Remotes()
if err != nil {
return nil, err
}
repoContext, err := context.ResolveRemotesToRepos(remotes, apiClient, "")
if err != nil {
return nil, err
}
repoContext.GetBaseRepo()
// baseRepo, err := repoContext.BaseRepo(f.IOStreams)
// if err != nil {
// return nil, err
// }
// return baseRepo, nil
// }
// urn nil
}