MCPcopy
hub / github.com/cli/cli / syncRun

Function syncRun

pkg/cmd/repo/sync/sync.go:91–97  ·  view source on GitHub ↗
(opts *SyncOptions)

Source from the content-addressed store, hash-verified

89}
90
91func syncRun(opts *SyncOptions) error {
92 if opts.DestArg == "" {
93 return syncLocalRepo(opts)
94 } else {
95 return syncRemoteRepo(opts)
96 }
97}
98
99func syncLocalRepo(opts *SyncOptions) error {
100 var srcRepo ghrepo.Interface

Callers 2

NewCmdSyncFunction · 0.85
Test_SyncRunFunction · 0.85

Calls 2

syncLocalRepoFunction · 0.85
syncRemoteRepoFunction · 0.85

Tested by 1

Test_SyncRunFunction · 0.68