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

Struct CheckoutOptions

pkg/cmd/pr/checkout/checkout.go:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected