cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
	Commit  string
	Date    string
)

Functions

func BuildSliceTreeNode

func BuildSliceTreeNode[T any](list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, markdown bool)

func BuildTreeMapNode

func BuildTreeMapNode(list *[]pterm.LeveledListItem, field reflect.Value, level int, markdown bool)

func DigIntoObject

func DigIntoObject[T any](list *[]pterm.LeveledListItem, field reflect.Value, level int, label string, markdown bool)

func Execute

func Execute(version, commit, date string)

func ExtractGithubDetailsFromURL

func ExtractGithubDetailsFromURL(url *url.URL) (string, string, string, error)

func FlattenHistoricalReport

func FlattenHistoricalReport(report *model.HistoricalReport) *model.FlatHistoricalReport

func FlattenReport

func FlattenReport(report *model.Report) *model.FlatReport

func GetConsoleCommand

func GetConsoleCommand() *cobra.Command

func GetHTMLReportCommand

func GetHTMLReportCommand() *cobra.Command

func GetReportCommand

func GetReportCommand() *cobra.Command

func GetSummaryCommand

func GetSummaryCommand() *cobra.Command

func PrintBanner

func PrintBanner()

func PrintHowToUse

func PrintHowToUse(command string)

func RunGitHistoryHTMLReport

func RunGitHistoryHTMLReport(gitPath, filePath string, latest, useCDN bool,
	progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote bool, limit int) ([]byte, []*model.Report, []error)

func RunGithubHistoryHTMLReport

func RunGithubHistoryHTMLReport(username, repo, filePath string, latest, useCDN, embeddedMode bool,
	progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, limit int, base string, remote bool) ([]byte, []*model.Report, []error)

func RunLeftRightHTMLReport

func RunLeftRightHTMLReport(left, right string, useCDN bool,
	progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote bool) ([]byte, []error)

func RunLeftRightHTMLReportViaString

func RunLeftRightHTMLReportViaString(left, right string, useCDN, embedded bool,
	progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, base string, remote bool) ([]byte, []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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