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

Struct CheckoutOptions

pkg/cmd/pr/checkout/checkout.go:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected