Skip to content

Commit 2729af5

Browse files
committed
Cleanup SyncOptions
1 parent 8d61b96 commit 2729af5

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

pkg/cmd/repo/sync/sync.go

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,25 @@ import (
1919
)
2020

2121
type SyncOptions struct {
22-
HttpClient func() (*http.Client, error)
23-
IO *iostreams.IOStreams
24-
BaseRepo func() (ghrepo.Interface, error)
25-
Remotes func() (context.Remotes, error)
26-
CurrentBranch func() (string, error)
27-
Git gitClient
28-
DestArg string
29-
SrcArg string
30-
Branch string
31-
Force bool
32-
SkipConfirm bool
22+
HttpClient func() (*http.Client, error)
23+
IO *iostreams.IOStreams
24+
BaseRepo func() (ghrepo.Interface, error)
25+
Remotes func() (context.Remotes, error)
26+
Git gitClient
27+
DestArg string
28+
SrcArg string
29+
Branch string
30+
Force bool
31+
SkipConfirm bool
3332
}
3433

3534
func NewCmdSync(f *cmdutil.Factory, runF func(*SyncOptions) error) *cobra.Command {
3635
opts := SyncOptions{
37-
HttpClient: f.HttpClient,
38-
IO: f.IOStreams,
39-
BaseRepo: f.BaseRepo,
40-
Remotes: f.Remotes,
41-
CurrentBranch: f.Branch,
42-
Git: &gitExecuter{gitCommand: git.GitCommand},
36+
HttpClient: f.HttpClient,
37+
IO: f.IOStreams,
38+
BaseRepo: f.BaseRepo,
39+
Remotes: f.Remotes,
40+
Git: &gitExecuter{gitCommand: git.GitCommand},
4341
}
4442

4543
cmd := &cobra.Command{

0 commit comments

Comments
 (0)