ui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: 0BSD Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel() (model, error)

func YearLen

func YearLen(year int) int

Types

type CommitLog

type CommitLog struct {
	Year    int
	YearDay int
	Commits [][]types.Commit
	Authors []string
	Repos   []string
	Table   table.Model
}

func NewCommitLog

func NewCommitLog() (CommitLog, error)

func (CommitLog) Init

func (m CommitLog) Init() tea.Cmd

func (CommitLog) Update

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

func (CommitLog) View

func (m CommitLog) View() string

type Cursor

type Cursor int

type Graph

type Graph struct {
	Selected int
	Year     int
	Repos    []string
	Authors  []string
}

func NewGraph

func NewGraph(authors, repos []string) (Graph, error)

func (Graph) Init

func (m Graph) Init() tea.Cmd

func (Graph) Update

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

func (Graph) View

func (m Graph) View() string

type SelectionMsg

type SelectionMsg struct {
	IsSelected bool
}

type Settings

type Settings struct {
	AllAuthors      selectablelist
	SelectedAuthors []string
	AllRepos        selectablelist
	SelectedRepos   []string

	AuthorList list.Model
	RepoList   list.Model
	// contains filtered or unexported fields
}

func NewSettings

func NewSettings() (Settings, error)

func (Settings) Init

func (m Settings) Init() tea.Cmd

func (Settings) Update

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

func (Settings) View

func (m Settings) View() string

type SettingsCursor

type SettingsCursor int

Jump to

Keyboard shortcuts

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