analyse

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeSinglePath = "single-path"
	ModeInputFile  = "input-file"
)

Mode constants

Variables

View Source
var AnalyseCmd = &cobra.Command{
	Use:                   "analyse --scanner/-p PLUGIN_NAME [--config/-c PATH] [--format/-f OUTPUT_FORMAT] [-j THREADS_NUMBER, default=1] {--input-file/-i PATH | PATH} -- [args...]",
	SilenceUsage:          true,
	DisableFlagsInUseLine: true,
	Example:               exampleAnalyseUsage,
	Short:                 "Provides a top-level interface with orchestration for running a specified scanner",
	RunE:                  runAnalyseCommand,
}

AnalyseCmd represents the analyse command.

View Source
var (
	AppConfig *config.Config
)

Global variables for configuration and command arguments

Functions

func Init

func Init(cfg *config.Config)

Init initializes the global configuration variable.

Types

type RunOptionsAnalyse

type RunOptionsAnalyse struct {
	Scanner        string
	InputFile      string
	ReportFormat   string
	ScannerConfig  string
	AdditionalArgs []string
	OutputPath     string
	Threads        int
}

RunOptionsAnalyse holds the arguments for the analyse command.

Jump to

Keyboard shortcuts

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