options

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathToScan

func GetPathToScan() string

func GetRepoURL

func GetRepoURL() string

func IsBaselineScan

func IsBaselineScan() bool

func IsCICDScan

func IsCICDScan() bool

func IsListRules

func IsListRules() bool

func IsVersion

func IsVersion() bool

Types

type Options

type Options struct {
	RepoURL      string `short:"u" long:"repo-url" required:"false" description:"URL of the repo. Used for baseline scan output"`
	ConfigFile   string `short:"c" long:"config" required:"false" description:"JSON or YAML config file to read from"`
	Rules        string `short:"r" long:"rules" required:"false" description:"Rules comma separated to run (ignore rules enabled/disabled in config)"`
	ListRules    bool   `short:"l" long:"list-rules" required:"false" description:"List rules which would be run"`
	BaselineScan bool   `` /* 254-byte string literal not displayed */
	CICDScan     bool   `` /* 302-byte string literal not displayed */
	Debug        bool   `short:"v" long:"verbose" required:"false" description:"Print out debug messages with time elapsed since last message"`
	Version      bool   `short:"V" long:"version" required:"false" description:"Display the current version of ASIST binary"`

	Args struct {
		Path string `description:"Path to the file or folder to scan"`
	} `positional-args:"yes"`
}

func Initilize

func Initilize() *Options

func (*Options) SpecificRuleIds

func (o *Options) SpecificRuleIds() []rules.RuleID

Jump to

Keyboard shortcuts

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