(io *iostreams.IOStreams, branches []api.LinkedBranch)
| 340 | } |
| 341 | |
| 342 | func printLinkedBranches(io *iostreams.IOStreams, branches []api.LinkedBranch) { |
| 343 | cs := io.ColorScheme() |
| 344 | table := tableprinter.New(io, tableprinter.WithHeader("BRANCH", "URL")) |
| 345 | for _, branch := range branches { |
| 346 | table.AddField(branch.BranchName, tableprinter.WithColor(cs.ColorFromString("cyan"))) |
| 347 | table.AddField(branch.URL) |
| 348 | table.EndRow() |
| 349 | } |
| 350 | _ = table.Render() |
| 351 | } |
| 352 | |
| 353 | func checkoutBranch(opts *DevelopOptions, branchRepo ghrepo.Interface, checkoutBranch string, worktreeTarget prShared.WorktreeTarget) (err error) { |
| 354 | remotes, err := opts.Remotes() |
no test coverage detected