analyse

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 11 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   `json:"scanner,omitempty"`
	InputFile      string   `json:"input_file,omitempty"`
	ReportFormat   string   `json:"report_format,omitempty"`
	ScannerConfig  string   `json:"scanner_config,omitempty"`
	AdditionalArgs []string `json:"additional_args,omitempty"`
	OutputPath     string   `json:"output_path,omitempty"`
	Threads        int      `json:"threads"`
}

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