Documentation ¶
Index ¶
- Constants
- func GetBoolFlag(flagName string) bool
- func GetIntFlag(flagName string) int
- func GetMultiStrFlag(flagName string) []string
- func GetStrFlag(flagName string) string
- func InitJSONFlags(cmd *cobra.Command, flagsListContent string, persistentFlag bool) error
- func SetMultiStrFlag(flagName string, value []string)
- func SetStrFlag(flagName, value string)
- func Validate() error
Constants ¶
View Source
const ( CIFlag = "ci" LogFileFlag = "log-file" LogFileShorthand = "l" LogFormatFlag = "log-format" LogFormatShorthand = "f" LogLevelFlag = "log-level" LogPathFlag = "log-path" NoColorFlag = "no-color" ProfilingFlag = "profiling" SilentFlag = "silent" SilentShorthand = "s" VerboseFlag = "verbose" VerboseShorthand = "v" )
Flags constants for kics
View Source
const ( CloudProviderFlag = "cloud-provider" ConfigFlag = "config" DisableCISDescFlag = "disable-cis-descriptions" DisableFullDescFlag = "disable-full-descriptions" ExcludeCategoriesFlag = "exclude-categories" ExcludePathsFlag = "exclude-paths" ExcludeQueriesFlag = "exclude-queries" ExcludeResultsFlag = "exclude-results" ExcludeSeveritiesFlag = "exclude-severities" IncludeQueriesFlag = "include-queries" InputDataFlag = "input-data" FailOnFlag = "fail-on" IgnoreOnExitFlag = "ignore-on-exit" MinimalUIFlag = "minimal-ui" NoProgressFlag = "no-progress" OutputNameFlag = "output-name" OutputPathFlag = "output-path" PathFlag = "path" PayloadPathFlag = "payload-path" PreviewLinesFlag = "preview-lines" QueriesPath = "queries-path" LibrariesPath = "libraries-path" ReportFormatsFlag = "report-formats" TypeFlag = "type" QueryExecTimeoutFlag = "timeout" LineInfoPayloadFlag = "payload-lines" )
Flags constants for scan
Variables ¶
This section is empty.
Functions ¶
func GetBoolFlag ¶
GetBoolFlag get a boolean flag by its name
func GetMultiStrFlag ¶
GetMultiStrFlag get a slice of strings flag by its name
func InitJSONFlags ¶
InitJSONFlags initialize cobra flags
func SetMultiStrFlag ¶
SetMultiStrFlag set a slice of strings flag using its name
func SetStrFlag ¶
func SetStrFlag(flagName, value string)
SetStrFlag set a string flag using its name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.