Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlagDebug = NewBoolFlag( configuration.DEBUG, false, "", ) FlagAppVulns = NewBoolFlag( "app-vulns", false, "enable app-vulns (deprecated, as this is the default value)", ) FlagExcludeAppVulns = NewBoolFlag( "exclude-app-vulns", false, "disable app-vulns", ) FlagSbomFormat = NewShortHandStringFlag( "format", "f", "", fmt.Sprintf("Specify the SBOM output format. %s", constants.SbomValidFormats), ) )
Functions ¶
This section is empty.
Types ¶
type BoolFlag ¶
type BoolFlag struct {
*BaseFlag
}
func NewShortHandBoolFlag ¶
func (*BoolFlag) GetAsCLIArgument ¶
func (f *BoolFlag) GetAsCLIArgument(c configuration.Configuration) string
func (*BoolFlag) GetFlagValue ¶
func (f *BoolFlag) GetFlagValue(c configuration.Configuration) bool
type Flag ¶
type Flag interface { GetFlagSet() *pflag.FlagSet GetAsCLIArgument(configuration.Configuration) string }
type StringFlag ¶
type StringFlag struct {
*BaseFlag
}
func NewShortHandStringFlag ¶
func NewShortHandStringFlag(name string, shorthand string, defaultValue string, usage string) *StringFlag
func NewStringFlag ¶
func NewStringFlag(name string, defaultValue string, usage string) *StringFlag
func (*StringFlag) GetAsCLIArgument ¶
func (f *StringFlag) GetAsCLIArgument(c configuration.Configuration) string
func (*StringFlag) GetFlagValue ¶
func (f *StringFlag) GetFlagValue(c configuration.Configuration) string
Click to show internal directories.
Click to hide internal directories.