(f *cmdutil.Factory)
| 331 | } |
| 332 | |
| 333 | func branchFunc(f *cmdutil.Factory) func() (string, error) { |
| 334 | return func() (string, error) { |
| 335 | currentBranch, err := f.GitClient.CurrentBranch(context.Background()) |
| 336 | if err != nil { |
| 337 | return "", fmt.Errorf("could not determine current branch: %w", err) |
| 338 | } |
| 339 | return currentBranch, nil |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 344 | em := extension.NewManager(f.IOStreams, f.GitClient, f.ExecutablePath) |
no test coverage detected