cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandInvalid    Command = ""
	CommandPrint              = "print"
	CommandTag                = "tag"
	CommandUntag              = "untag"
	CommandInvalidate         = "invalidate"
	CommandRevalidate         = "revalidate"
	CommandLicenses           = "licenses"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command string

type CommandLine

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

Represents a parsed command line argument set.

func ParseCommandLine

func ParseCommandLine() (*CommandLine, error)

Parses and validates command line arguments.

func (*CommandLine) Command

func (r *CommandLine) Command() Command
func (r *CommandLine) FlagFollowSymlinks() bool

func (*CommandLine) FlagHash

func (r *CommandLine) FlagHash() hashes.Algo

func (*CommandLine) FlagLogLevel

func (r *CommandLine) FlagLogLevel() logger.Level

func (*CommandLine) FlagMultiThread

func (r *CommandLine) FlagMultiThread() bool

func (*CommandLine) FlagPrint0

func (r *CommandLine) FlagPrint0() bool

func (*CommandLine) FlagPrintRecords

func (r *CommandLine) FlagPrintRecords() bool

func (*CommandLine) FlagQuitOnSoftError

func (r *CommandLine) FlagQuitOnSoftError() bool

func (*CommandLine) FlagQuotaContinue

func (r *CommandLine) FlagQuotaContinue() bool

func (*CommandLine) ForbidRecursion

func (r *CommandLine) ForbidRecursion() bool

func (*CommandLine) Names

func (r *CommandLine) Names() []string

func (*CommandLine) Paths

func (r *CommandLine) Paths() []string

func (*CommandLine) PrintConstraint

func (r *CommandLine) PrintConstraint() PrintConstraint

func (*CommandLine) SizeQuota

func (r *CommandLine) SizeQuota() int64

func (*CommandLine) TagConstraint

func (r *CommandLine) TagConstraint() TagConstraint

func (*CommandLine) UntagConstraint

func (r *CommandLine) UntagConstraint() UntagConstraint

type PrintConstraint

type PrintConstraint int
const (
	PrintConstraintNone PrintConstraint = iota
	PrintConstraintValid
	PrintConstraintInvalid
	PrintConstraintUntagged
)

type TagConstraint

type TagConstraint int
const (
	TagConstraintNone TagConstraint = iota
	TagConstraintUntagged
	TagConstraintInvalid
)

type UntagConstraint

type UntagConstraint int
const (
	UntagConstraintNone UntagConstraint = iota
	UntagConstraintAll
	UntagConstraintInvalid
)

Jump to

Keyboard shortcuts

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