commits

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitAuthorSummary

type CommitAuthorSummary struct {
	AuthorName    string         `db:"author_name"`
	AuthorEmail   sql.NullString `db:"author_email"`
	Commits       int            `db:"commit_count"`
	Additions     sql.NullInt64  `db:"additions"`
	Deletions     sql.NullInt64  `db:"deletions"`
	DistinctFiles int            `db:"distinct_files"`
	FirstCommit   string         `db:"first_commit"`
	LastCommit    string         `db:"last_commit"`
}

type CommitSummary

type CommitSummary struct {
	Total           int            `db:"total"`
	TotalNonMerges  int            `db:"total_non_merges"`
	FirstCommit     sql.NullString `db:"first_commit"`
	LastCommit      sql.NullString `db:"last_commit"`
	DistinctAuthors int            `db:"distinct_authors"`
	DistinctFiles   int            `db:"distinct_files"`
}

type TermUI

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

func NewTermUI

func NewTermUI(pathPattern, dateFilterStart, dateFilterEnd string) (*TermUI, error)

func (*TermUI) Close

func (t *TermUI) Close() error

func (*TermUI) Init

func (t *TermUI) Init() tea.Cmd

func (*TermUI) PrintJSON

func (t *TermUI) PrintJSON() string

PrintJSON outputs summary results as a JSON object

func (*TermUI) PrintNoTTY

func (t *TermUI) PrintNoTTY() string

PrintNoTTY prints a version of output with no terminal styles

func (*TermUI) Update

func (t *TermUI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*TermUI) View

func (t *TermUI) View() string

Jump to

Keyboard shortcuts

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