output

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONOutputStr = "json"
)

Variables

View Source
var (
	CLIOutputTemplateJSONFlag = &cli.StringFlag{
		Name:  "output",
		Value: JSONOutputStr,
		Usage: fmt.Sprintf("specify output format [template, %s]. Default is '%s'.", JSONOutputStr, JSONOutputStr),
	}

	CLIOutputJSONFlag = &cli.StringFlag{
		Name:  "output",
		Value: JSONOutputStr,
		Usage: fmt.Sprintf("specify output format [%s]. Default is '%s'.", JSONOutputStr, JSONOutputStr),
	}

	CLITemplateFileFlag = &cli.StringFlag{
		Name:        "template-file",
		DefaultText: "../../template/index.html",
		Usage:       "specify path to template file. Uses go's template syntax",
	}
)

Functions

func FuncMap

func FuncMap() map[string]interface{}

FuncMap returns a map of registered templating helpers.

func GetFromCLIContext

func GetFromCLIContext(ctx *cli.Context) (func(data any) error, error)

func JSONer

func JSONer(wr io.Writer) (func(data any) error, error)

func PredicateOnSeverity

func PredicateOnSeverity(va gh.VulnerabilityAlerts, severity ...string) gh.VulnerabilityAlerts

PredicateOnSeverity filters on a Severity

func Templater

func Templater(wr io.Writer, templateFile string) (func(data any) error, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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