ui

package
v0.0.0-...-d0c7a6b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RocketEmoji    = "🚀"
	WarningEmoji   = "⚠️"
	CheckEmoji     = "✅"
	CrossEmoji     = "❌"
	LockEmoji      = "🔒"
	MagnifierEmoji = "🔍"
	FolderEmoji    = "📁"
	GearEmoji      = "⚙️"
	ChartEmoji     = "📊"
	ShieldEmoji    = "🛡️"
	TimeEmoji      = "⏱️"
	CatEmoji       = "🐱"
)

Emoji constants

Variables

This section is empty.

Functions

func ColorForSeverity

func ColorForSeverity(severity string) func(string, ...interface{}) string

ColorForSeverity returns the appropriate color function for a severity level

func EmojiForSeverity

func EmojiForSeverity(severity string) string

EmojiForSeverity returns the appropriate emoji for a severity level

func PrintAuditComplete

func PrintAuditComplete(auditorName string, findingsCount int)

PrintAuditComplete prints the completion of an audit section

func PrintAuditStart

func PrintAuditStart(auditorName string)

PrintAuditStart prints the start of an audit section

func PrintDebug

func PrintDebug(message string)

PrintDebug prints a debug message

func PrintError

func PrintError(message string, err error)

PrintError prints an error message

func PrintFinding

func PrintFinding(finding types.Finding)

PrintFinding prints a single finding with appropriate formatting

func PrintProgress

func PrintProgress(message string)

PrintProgress prints a progress message

func PrintReportLocation

func PrintReportLocation(filepath string)

PrintReportLocation prints where the report was saved

func PrintStartupBanner

func PrintStartupBanner()

PrintStartupBanner prints the application startup banner

func PrintSuccess

func PrintSuccess(message string)

PrintSuccess prints a success message

func PrintSummary

func PrintSummary(report types.AuditReport)

PrintSummary prints the audit summary

func PrintWarning

func PrintWarning(message string)

PrintWarning prints a warning message

Types

type ProgressIndicator

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

ProgressIndicator represents a progress indicator for long-running operations

func NewProgressIndicator

func NewProgressIndicator(message string) *ProgressIndicator

NewProgressIndicator creates a new progress indicator

func (*ProgressIndicator) Start

func (p *ProgressIndicator) Start()

Start starts showing the progress indicator

func (*ProgressIndicator) Stop

func (p *ProgressIndicator) Stop()

Stop stops the progress indicator

Jump to

Keyboard shortcuts

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