(f *cmdutil.Factory)
| 317 | } |
| 318 | |
| 319 | func branchFunc(f *cmdutil.Factory) func() (string, error) { |
| 320 | return func() (string, error) { |
| 321 | currentBranch, err := f.GitClient.CurrentBranch(context.Background()) |
| 322 | if err != nil { |
| 323 | return "", fmt.Errorf("could not determine current branch: %w", err) |
| 324 | } |
| 325 | return currentBranch, nil |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 330 | em := extension.NewManager(f.IOStreams, f.GitClient, f.ExecutablePath) |
no test coverage detected