(f *cmdutil.Factory)
| 260 | } |
| 261 | |
| 262 | func branchFunc(f *cmdutil.Factory) func() (string, error) { |
| 263 | return func() (string, error) { |
| 264 | currentBranch, err := f.GitClient.CurrentBranch(context.Background()) |
| 265 | if err != nil { |
| 266 | return "", fmt.Errorf("could not determine current branch: %w", err) |
| 267 | } |
| 268 | return currentBranch, nil |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 273 | em := extension.NewManager(f.IOStreams, f.GitClient) |
no test coverage detected