kat

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Konf

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

Konf is all the information necessary to parse flags for, and then prepare to execute kat

func (*Konf) Args

func (k *Konf) Args() []string

func (*Konf) Load

func (k *Konf) Load(env *flargs.Environment) error

now that we have access to Environment let's see if all the strings passed in can be mapped to real files return an error for any non-valid file name.

func (*Konf) Parse

func (k *Konf) Parse(args []string) error

do these flags make sense? an error will result if any flag other than "-n" is passed in all arguments are assumed to be files. We don't have access to an Environment here, so this logic represents all files that are *theoretically* possible

func (*Konf) Run

func (k *Konf) Run(env *flargs.Environment) error

Now we should have an array of real files. We can iterate over them and spit out the contents. We still report an error if there is a problem operating on these real files.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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