arg

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BagNone   = "none"
	BagRaw    = "raw"
	BagText   = "text"
	BagJson   = "json"
	BagJsonl  = "jsonl"
	BagXml    = "xml"
	BagSqlite = "sqlite"
)
View Source
const (
	Bag = "evidence"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Args []string

	Deflate string

	Print ArgsPrint
	Bag   ArgsBag
	Opt   ArgsOpt
	UI    ArgsUI
}

func GetArgs

func GetArgs() *Args

func NewArgs

func NewArgs() *Args

type ArgsBag

type ArgsBag struct {
	Path string
	Mode string
	Key  string
	Url  string
}

type ArgsOpt

type ArgsOpt struct {
	Skip bool
}

type ArgsPrint

type ArgsPrint struct {
	Active bool
	NoFile bool
	NoLine bool
	Mode   types.Print
	Value  any
}

type ArgsUI

type ArgsUI struct {
	Mode mode.Mode
}

type Counts

type Counts struct {
	Lines int // lines count
	Bytes int // bytes count
}

type Filters

type Filters struct {
	Patterns []string // patterns
	Before   int      // lines before
	After    int      // lines after
}

func GetFilters

func GetFilters() *Filters

func (*Filters) Pop

func (f *Filters) Pop()

Pop global filter

func (*Filters) Set

func (f *Filters) Set(p string) error

Set global filter

func (*Filters) String

func (f *Filters) String() string

func (*Filters) Type

func (f *Filters) Type() string

type Limits

type Limits struct {
	Head Counts // head limit
	Tail Counts // tail limit
}

func GetLimits

func GetLimits() *Limits

func (*Limits) ReduceMMap

func (l *Limits) ReduceMMap(m *mmap.MMap) *mmap.MMap

func (*Limits) ReduceSMap

func (l *Limits) ReduceSMap(s *smap.SMap) *smap.SMap

Jump to

Keyboard shortcuts

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