(io *iostreams.IOStreams, branches []api.LinkedBranch)
| 308 | } |
| 309 | |
| 310 | func printLinkedBranches(io *iostreams.IOStreams, branches []api.LinkedBranch) { |
| 311 | cs := io.ColorScheme() |
| 312 | table := tableprinter.New(io, tableprinter.WithHeader("BRANCH", "URL")) |
| 313 | for _, branch := range branches { |
| 314 | table.AddField(branch.BranchName, tableprinter.WithColor(cs.ColorFromString("cyan"))) |
| 315 | table.AddField(branch.URL) |
| 316 | table.EndRow() |
| 317 | } |
| 318 | _ = table.Render() |
| 319 | } |
| 320 | |
| 321 | func checkoutBranch(opts *DevelopOptions, branchRepo ghrepo.Interface, checkoutBranch string) (err error) { |
| 322 | remotes, err := opts.Remotes() |
no test coverage detected