toolargs

package
v0.0.0-nightly.20260713 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 BoolFlagEnabled(args []string, long string) bool

func HasFlag

func HasFlag(args []string, long string) bool

func NormalizeFlags added in v0.2.7

func NormalizeFlags(args []string, known map[string]struct{}, aliases map[string]string) []string

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

func ResolvePath(value, workDir string) string

ResolvePath resolves a single path relative to workDir. Returns value unchanged if empty, absolute, or starts with "-".

func ResolveRelativePaths added in v0.2.7

func ResolveRelativePaths(args []string, fileFlags map[string]bool, workDir string) []string

ResolveRelativePaths resolves relative file paths in args against workDir. fileFlags is the set of flags whose next argument (or =value) is a file path.

Types

type Base added in v0.2.7

type Base struct {
	Logger  telemetry.Logger
	Proxy   string
	WorkDir string
	DataBus *eventbus.Bus[output.ToolDataEvent]
}

func (*Base) EmitData added in v0.2.8

func (b *Base) EmitData(tool, kind, target string, data any)

func (*Base) InitLogger added in v0.2.7

func (b *Base) InitLogger(logger telemetry.Logger)

func (*Base) SetProxy added in v0.2.7

func (b *Base) SetProxy(proxy string)

func (*Base) SetWorkDir added in v0.2.7

func (b *Base) SetWorkDir(dir string)

Jump to

Keyboard shortcuts

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