blame

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlameAuthorSummary

type BlameAuthorSummary struct {
	AuthorName  string          `db:"author_name"`
	AuthorEmail string          `db:"author_email"`
	Lines       int             `db:"loc"`
	Latest      sql.NullString  `db:"latest"`
	Oldest      sql.NullString  `db:"oldest"`
	AvgAge      sql.NullFloat64 `db:"avg_age"`
	Commits     int             `db:"commits"`
	Files       string          `db:"files"`
}

type BlameSummary

type BlameSummary struct {
	Lines   int             `db:"loc"`
	Files   int             `db:"files"`
	Authors int             `db:"authors"`
	Latest  sql.NullString  `db:"latest"`
	Oldest  sql.NullString  `db:"oldest"`
	AvgAge  sql.NullFloat64 `db:"avg_age"`
	Commits int             `db:"commits"`
}

type TermUI

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

func NewTermUI

func NewTermUI(pathPattern 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