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

ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPRDetailsNotCached = errors.New("PR details were not saved")
)

Functions

func InitialModel

func InitialModel(ghClient *ghapi.GraphQLClient, config Config, mode Mode) model

func RenderUI

func RenderUI(ghClient *ghapi.GraphQLClient, config Config, mode Mode) error

func RightPadTrim

func RightPadTrim(s string, length int) string

func Trim

func Trim(s string, length int) string

Types

type Config

type Config struct {
	PRCount int
	Repos   []Repo
	Query   *string
}

type Mode added in v0.2.0

type Mode uint
const (
	QueryMode Mode = iota
	RepoMode
)

type PRDetailSection added in v1.0.0

type PRDetailSection uint
const (
	PRMetadata PRDetailSection = iota
	PRDescription
	PRChecks
	PRReferences
	PRFilesChanged
	PRCommits
	PRComments
)

type Pane

type Pane uint

type Repo

type Repo struct {
	Owner string
	Name  string
}

func (Repo) Description

func (repo Repo) Description() string

func (Repo) FilterValue

func (repo Repo) FilterValue() string

func (Repo) Title

func (repo Repo) Title() string

type SourceConfig

type SourceConfig struct {
	DiffPager *string `yaml:"diff-pager"`
	PRCount   *int    `yaml:"pr-count"`
	Sources   *[]struct {
		Owner string `yaml:"owner"`
		Repos []struct {
			Name string `yaml:"name"`
		} `yaml:"repos"`
	} `yaml:"sources"`
	Query *string `yaml:"query"`
}

Jump to

Keyboard shortcuts

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