| 23 | ) |
| 24 | |
| 25 | type 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 | |
| 42 | func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobra.Command { |
| 43 | opts := &CheckoutOptions{ |
nothing calls this directly
no outgoing calls
no test coverage detected