ui

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HighlightsModel

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

func NewHighlightsModel

func NewHighlightsModel(stats orgstats.Stats, top int, includeReviews bool) HighlightsModel

func (HighlightsModel) Init

func (m HighlightsModel) Init() tea.Cmd

func (HighlightsModel) Update

func (m HighlightsModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (HighlightsModel) View

func (m HighlightsModel) View() string

type InitialModel

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

InitialModel is the UI when the CLI starts, basically loading the repos.

func NewInitialModel

func NewInitialModel(
	client *github.Client,
	org string,
	userBlacklist, repoBlacklist []string,
	since time.Time,
	top int,
	includeReviewStats bool,
	csv io.Writer,
) InitialModel

NewInitialModel creates a new InitialModel with required fields.

func (InitialModel) Init

func (m InitialModel) Init() tea.Cmd

func (InitialModel) Update

func (m InitialModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (InitialModel) View

func (m InitialModel) View() string

Jump to

Keyboard shortcuts

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