cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Format added in v0.10.0

type Format string

Format represents the output format for ghasec diagnostics.

const (
	FormatDefault       Format = "default"
	FormatGitHubActions Format = "github-actions"
	FormatMarkdown      Format = "markdown"
	FormatSARIF         Format = "sarif"
)

func (Format) IsValid added in v0.10.0

func (f Format) IsValid() bool

IsValid reports whether f is a recognized output format.

func (*Format) Set added in v0.10.0

func (f *Format) Set(s string) error

Set implements pflag.Value. It validates the format string and sets f.

func (Format) String added in v0.10.0

func (f Format) String() string

String implements pflag.Value.

func (Format) Type added in v0.10.0

func (f Format) Type() string

Type implements pflag.Value. Returns "string" for CLI help display.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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