MCPcopy Create free account
hub / github.com/cli/cli / CheckoutOptions

Struct CheckoutOptions

pkg/cmd/pr/checkout/checkout.go:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23)
24
25type CheckoutOptions struct {
26 HttpClient func() (*http.Client, error)
27 GitClient *git.Client
28 Config func() (gh.Config, error)
29 IO *iostreams.IOStreams
30 Remotes func() (cliContext.Remotes, error)
31 Branch func() (string, error)
32
33 PRResolver PRResolver
34
35 RecurseSubmodules bool
36 Force bool
37 Detach bool
38 BranchName string
39 Worktree string
40}
41
42func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobra.Command {
43 opts := &CheckoutOptions{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected