Documentation
¶
Index ¶
- Variables
- func BoolFlagEnabled(args []string, long string) bool
- func HasFlag(args []string, long string) bool
- func NormalizeFlags(args []string, known map[string]struct{}, aliases map[string]string) []string
- func ResolvePath(value, workDir string) string
- func ResolveRelativePaths(args []string, fileFlags map[string]bool, workDir string) []string
- type Base
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonAliases = map[string]string{
"-etags": "-exclude-tags",
"-eid": "-exclude-id",
"-es": "-exclude-severity",
"-tl": "-template-list",
}
CommonAliases defines nuclei-style short flag aliases shared across tools.
Functions ¶
func BoolFlagEnabled ¶
func NormalizeFlags ¶ added in v0.2.7
NormalizeFlags converts single-dash flags to double-dash when they match a known flag, and applies alias mappings. Unknown flags pass through.
func ResolvePath ¶ added in v0.2.7
ResolvePath resolves a single path relative to workDir. Returns value unchanged if empty, absolute, or starts with "-".
Types ¶
Click to show internal directories.
Click to hide internal directories.