MCPcopy Create free account
hub / github.com/cli/cli / BrowseOptions

Struct BrowseOptions

pkg/cmd/browse/browse.go:30–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28)
29
30type 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
52func NewCmdBrowse(f *cmdutil.Factory, runF func(*BrowseOptions) error) *cobra.Command {
53 opts := &BrowseOptions{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected