ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel(config Config, mode Mode) model

func RenderUI

func RenderUI(config Config, mode Mode)

func RightPadTrim

func RightPadTrim(s string, length int) string

func Trim

func Trim(s string, length int) string

Types

type Config

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

type Mode added in v0.2.0

type Mode uint
const (
	RepoMode Mode = iota
	ReviewerMode
	AuthorMode
)

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"`
}

Jump to

Keyboard shortcuts

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