cmd

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: AGPL-3.0 Imports: 26 Imported by: 4

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)

func BuildTreeMapNode

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

func DigIntoObject

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

func Execute

func Execute(version, commit, date string)

func ExtractGithubDetailsFromURL

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

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) ([]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) ([]byte, []*model.Report, []error)

func RunLeftRightHTMLReport

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

func RunLeftRightHTMLReportViaString

func RunLeftRightHTMLReportViaString(left, right string, useCDN, embedded bool,
	progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]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