view

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundError = errors.New("not found")

Functions

func NewCmdView

func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Command

Types

type RepoReadme

type RepoReadme struct {
	Filename string
	Content  string
	BaseURL  string
}

func RepositoryReadme

func RepositoryReadme(client *http.Client, repo ghrepo.Interface, branch string) (*RepoReadme, error)

type ViewOptions

type ViewOptions struct {
	HttpClient func() (*http.Client, error)
	IO         *iostreams.IOStreams
	BaseRepo   func() (ghrepo.Interface, error)
	Browser    browser
	Exporter   cmdutil.Exporter

	RepoArg string
	Web     bool
	Branch  string
}

Jump to

Keyboard shortcuts

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