ui

package
v0.3.5-debug2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Emerald = lipgloss.NewStyle().Foreground(lipgloss.Color("#34d399"))
View Source
var Gray = lipgloss.NewStyle().Foreground(lipgloss.Color("#dddddd"))
View Source
var Pantone = lipgloss.NewStyle().Foreground(lipgloss.Color("#6667ab"))
View Source
var Red = lipgloss.NewStyle().Foreground(lipgloss.Color("#ff0000"))
View Source
var White = lipgloss.NewStyle().Foreground(lipgloss.Color("#ffffff"))

Functions

func CpeMeta

func CpeMeta(cpe sdk.CpeMeta) error

func Danger

func Danger(str string) error

func Download

func Download(url string, filename string) error

func Error

func Error(format string, args ...interface{}) error

func FlagErrorWrap

func FlagErrorWrap(err error) error

FlagErrorWrap FlagError returns a new FlagError that wraps the specified error.

func IndicesBrowse

func IndicesBrowse(indices []sdk.IndicesMeta, search string, action func(index string) error) error

func IndicesList

func IndicesList(indices []sdk.IndicesMeta, search string) error

func IndicesRows

func IndicesRows(indices []sdk.IndicesMeta, search string) []table.Row

func Info

func Info(str string)

func Json

func Json(data interface{})

func JsonFile added in v0.2.4

func JsonFile(data interface{}, filename string) error

func NewProgress

func NewProgress(total int)

Start a new progress bar

func PurlMeta

func PurlMeta(purl sdk.PurlMeta) error

func PurlVulns

func PurlVulns(vulns []sdk.PurlVulnerability) error

func ScanResults

func ScanResults(results []models.ScanResultVulnerabilities) error

func Stat

func Stat(label string, value string)

func Success

func Success(str string)

func TermHeight

func TermHeight() int

func TermWidth

func TermWidth() int

func UpdateProgress

func UpdateProgress(value int)

func Viewport

func Viewport(index string, data interface{})

Types

type FlagError

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

func (*FlagError) Error

func (fe *FlagError) Error() string

func (*FlagError) Unwrap

func (fe *FlagError) Unwrap() error

Jump to

Keyboard shortcuts

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