commands

package
v71.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredAlertCommand

type CredAlertCommand struct {
	Scan   ScanCommand   `command:"scan" description:"Scan an archive, Git diff, or input from STDIN"`
	Update UpdateCommand `command:"update" description:"Update cred-alert to the latest version"`
}
var CredAlert CredAlertCommand

type ScanCommand

type ScanCommand struct {
	File            string `short:"f" long:"file" description:"the file or directory to scan" value-name:"FILE"`
	Diff            bool   `long:"diff" description:"content to be scanned is a git diff"`
	ShowCredentials bool   `long:"show-suspected-credentials" description:"allow credentials to be shown in output"`
	Regexp          string `long:"regexp" description:"override default regexp matcher" value-name:"REGEXP"`
	RegexpFile      string `long:"regexp-file" description:"path to regexp file" value-name:"PATH"`
}

func (*ScanCommand) Execute

func (command *ScanCommand) Execute(args []string) error

type UpdateCommand

type UpdateCommand struct{}

func (*UpdateCommand) Execute

func (command *UpdateCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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