| 28 | ) |
| 29 | |
| 30 | type BrowseOptions struct { |
| 31 | BaseRepo func() (ghrepo.Interface, error) |
| 32 | Browser browser.Browser |
| 33 | HttpClient func() (*http.Client, error) |
| 34 | IO *iostreams.IOStreams |
| 35 | PathFromRepoRoot func() string |
| 36 | GitClient gitClient |
| 37 | |
| 38 | SelectorArg string |
| 39 | |
| 40 | Branch string |
| 41 | Commit string |
| 42 | ProjectsFlag bool |
| 43 | ReleasesFlag bool |
| 44 | SettingsFlag bool |
| 45 | WikiFlag bool |
| 46 | ActionsFlag bool |
| 47 | BlameFlag bool |
| 48 | NoBrowserFlag bool |
| 49 | HasRepoOverride bool |
| 50 | } |
| 51 | |
| 52 | func NewCmdBrowse(f *cmdutil.Factory, runF func(*BrowseOptions) error) *cobra.Command { |
| 53 | opts := &BrowseOptions{ |
nothing calls this directly
no outgoing calls
no test coverage detected