Help us shape the future of Go! Take the 2026 Go Developer Survey

browse

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package browse implements the browse command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBrowse

func NewCmdBrowse(f *cmdutil.Factory, runF func(*BrowseOptions) error) *cobra.Command

NewCmdBrowse creates the browse command.

Types

type BrowseOptions

type BrowseOptions struct {
	IO       *iostreams.IOStreams
	Config   func() (config.Config, error)
	BaseRepo func() (string, error)
	Browser  func(string) error

	Repository string
	Arg        string

	Branch    string
	Commit    string
	PR        bool
	NoBrowser bool
}

BrowseOptions configures the browse command.

Source Files

  • browse.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL