cat

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShowWarcHeader      = "header"
	ShowWarcHeaderShort = "w"
	ShowWarcHeaderHelp  = "show WARC header"

	ShowProtocolHeader      = "protocol-header"
	ShowProtocolHeaderShort = "p"
	ShowProtocolHeaderHelp  = "show protocol header"

	ShowPayload      = "payload"
	ShowPayloadShort = "P"
	ShowPayloadHelp  = "show payload"
)
View Source
const CRLF = "\r\n"

Variables

This section is empty.

Functions

func NewCmdCat

func NewCmdCat() *cobra.Command

Types

type CatFlags

type CatFlags struct {
	FileWalkerFlags       flag.FileWalkerFlags
	FilterFlags           flag.FilterFlags
	WarcIteratorFlags     flag.WarcIteratorFlags
	WarcRecordOptionFlags flag.WarcRecordOptionFlags
}

func (CatFlags) AddFlags

func (f CatFlags) AddFlags(cmd *cobra.Command)

func (CatFlags) Compress

func (f CatFlags) Compress() bool

func (CatFlags) ShowPayload

func (f CatFlags) ShowPayload() bool

func (CatFlags) ShowProtocolHeader

func (f CatFlags) ShowProtocolHeader() bool

func (CatFlags) ShowWarcHeader

func (f CatFlags) ShowWarcHeader() bool

func (CatFlags) ToOptions

func (f CatFlags) ToOptions() (*CatOptions, error)

type CatOptions

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

func (*CatOptions) Complete

func (o *CatOptions) Complete(cmd *cobra.Command, args []string) error

func (*CatOptions) Run

func (o *CatOptions) Run() error

Run runs the cat command

func (*CatOptions) Validate

func (o *CatOptions) Validate() error

Validate validates the options

Jump to

Keyboard shortcuts

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