config

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package config holds the CLI configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config is the whole command line: the library's knobs, plus this command's.

func NewWithFlags

func NewWithFlags(fs *flag.FlagSet) *Config

NewWithFlags declares a Config with every flag on fs.

func (*Config) ConfigPath

func (c *Config) ConfigPath() string

func (*Config) ConfigSet

func (c *Config) ConfigSet() []string

func (*Config) PrepareScan

func (c *Config) PrepareScan() (options *scanner.Options, profiling *scan.Profiling, err error)

PrepareScan converts a CLI Config into proper scanner.Options that the scanner understands. At this point, no downstream consumer needs to know where a value came from (file, env, flag...).

func (*Config) WantsProfile

func (c *Config) WantsProfile() bool

func (*Config) WantsVersion

func (c *Config) WantsVersion() bool

Jump to

Keyboard shortcuts

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