view

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdView

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

Types

type RunLogCache added in v2.48.0

type RunLogCache struct {
	// contains filtered or unexported fields
}

func (RunLogCache) Create added in v2.48.0

func (c RunLogCache) Create(key string, content io.Reader) error

func (RunLogCache) Exists added in v2.48.0

func (c RunLogCache) Exists(key string) (bool, error)

func (RunLogCache) Open added in v2.48.0

func (c RunLogCache) Open(key string) (*zip.ReadCloser, error)

type ViewOptions

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

	RunID      string
	JobID      string
	Verbose    bool
	ExitStatus bool
	Log        bool
	LogFailed  bool
	Web        bool
	Attempt    uint64

	Prompt   bool
	Exporter cmdutil.Exporter

	Now func() time.Time
}

Jump to

Keyboard shortcuts

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