From 2729af50df056bf921f7bb8e2efd3b72b09a59ae Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Fri, 11 Jun 2021 13:51:25 -0400 Subject: [PATCH] Cleanup SyncOptions --- pkg/cmd/repo/sync/sync.go | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/pkg/cmd/repo/sync/sync.go b/pkg/cmd/repo/sync/sync.go index daa7b96c5..5836666b4 100644 --- a/pkg/cmd/repo/sync/sync.go +++ b/pkg/cmd/repo/sync/sync.go @@ -19,27 +19,25 @@ import ( ) type SyncOptions struct { - HttpClient func() (*http.Client, error) - IO *iostreams.IOStreams - BaseRepo func() (ghrepo.Interface, error) - Remotes func() (context.Remotes, error) - CurrentBranch func() (string, error) - Git gitClient - DestArg string - SrcArg string - Branch string - Force bool - SkipConfirm bool + HttpClient func() (*http.Client, error) + IO *iostreams.IOStreams + BaseRepo func() (ghrepo.Interface, error) + Remotes func() (context.Remotes, error) + Git gitClient + DestArg string + SrcArg string + Branch string + Force bool + SkipConfirm bool } func NewCmdSync(f *cmdutil.Factory, runF func(*SyncOptions) error) *cobra.Command { opts := SyncOptions{ - HttpClient: f.HttpClient, - IO: f.IOStreams, - BaseRepo: f.BaseRepo, - Remotes: f.Remotes, - CurrentBranch: f.Branch, - Git: &gitExecuter{gitCommand: git.GitCommand}, + HttpClient: f.HttpClient, + IO: f.IOStreams, + BaseRepo: f.BaseRepo, + Remotes: f.Remotes, + Git: &gitExecuter{gitCommand: git.GitCommand}, } cmd := &cobra.Command{