| 20 | ) |
| 21 | |
| 22 | type 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 | |
| 38 | func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobra.Command { |
| 39 | opts := &CheckoutOptions{ |
nothing calls this directly
no outgoing calls
no test coverage detected