cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultConfig = Marshalled from file in ConfigDirectory
	DefaultConfig model.Configuration
	// ConfigDirectory = $HOME/.diggity.yaml
	ConfigDirectory string

	// Arguments is an instance of the actual arguments passed
	Arguments model.Arguments = model.Arguments{
		DisableFileListing:  new(bool),
		SecretContentRegex:  new(string),
		DisableSecretSearch: new(bool),
		DisablePullTimeout:  new(bool),
		Dir:                 new(string),
		Tar:                 new(string),
		Quiet:               new(bool),
		OutputFile:          new(string),
		ExcludedFilenames:   &[]string{},
		SecretExtensions:    &[]string{},
		EnabledParsers:      &[]string{},
		RegistryURI:         new(string),
		RegistryUsername:    new(string),
		RegistryPassword:    new(string),
		RegistryToken:       new(string),
		Provenance:          new(string),
	}
)

Functions

func Execute

func Execute()

Execute Diggity

func SplitArgs

func SplitArgs(args []string) (result []string)

SplitArgs splits arguments with comma, if any

func ValidateOutputArg

func ValidateOutputArg(outputType string)

ValidateOutputArg checks if output types specified are valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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