report

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockForVal added in v1.2.0

func BlockForVal(val, max int) string

BlockForVal determines the correct block to return for a value

func CommitSummary added in v1.2.3

func CommitSummary(projects []ProjectCommits, options OutputOptions) (string, error)

CommitSummary returns the commit summary report

func Commits

func Commits(projects []ProjectCommits, options OutputOptions) (string, error)

Commits returns the commits report

func Files

func Files(projects []ProjectCommits, options OutputOptions) (string, error)

Files returns the files report

func ProjectSummary added in v1.3.0

func ProjectSummary(projects []ProjectCommits, options OutputOptions) (string, error)

ProjectSummary returns the project summary report

func Status

func Status(n note.CommitNote, options OutputOptions, projPath ...string) (string, error)

Status returns the status report

func Timeline

func Timeline(projects []ProjectCommits, options OutputOptions) (string, error)

Timeline returns the time spent by hour

func TimelineCommits added in v1.2.0

func TimelineCommits(projects []ProjectCommits, options OutputOptions) (string, error)

TimelineCommits returns the number commits by hour

Types

type OutputOptions added in v1.2.0

type OutputOptions struct {
	TotalOnly    bool
	LongDuration bool
	FullMessage  bool
	TerminalOff  bool
	Color        bool
	Limit        int
}

OutputOptions contains cli options for reporting

type ProjectCommits added in v1.2.0

type ProjectCommits struct {
	Path    string
	Commits []string
}

ProjectCommits contains a project's directory path and commit ids

Jump to

Keyboard shortcuts

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