Documentation
¶
Index ¶
- Constants
- Variables
- func FuncMap() map[string]interface{}
- func GetFromCLIContext(ctx *cli.Context) (func(data any) error, error)
- func JSONer(wr io.Writer) (func(data any) error, error)
- func PredicateOnSeverity(va gh.VulnerabilityAlerts, severity ...string) gh.VulnerabilityAlerts
- func Templater(wr io.Writer, templateFile string) (func(data any) error, error)
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 PredicateOnSeverity ¶
func PredicateOnSeverity(va gh.VulnerabilityAlerts, severity ...string) gh.VulnerabilityAlerts
PredicateOnSeverity filters on a Severity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.