Documentation ¶
Index ¶
- Variables
- func GetFn(name string) (*object.Builtin, bool)
- func Interpolate(envV map[string]interface{}, value string) (string, error)
- func RegisterBuiltin(name string, def *object.Builtin)
- func RegisterFn(name string, def object.BuiltinFunction)
- func TestGzipItem(item io.Reader) error
- func TestGzipItems(items []string) error
- type Grep
- type Gunzip
- type Gzip
- type Head
- type Ls
- type Sleep
- type Tail
- type Tee
- type Unzip
- type Wc
- type Which
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Null can be a single instance Null = &object.Null{} )
Functions ¶
func Interpolate ¶
Interpolate replaces strings using a template
func RegisterBuiltin ¶
RegisterBuiltin registers a 'builtin'
func RegisterFn ¶
func RegisterFn(name string, def object.BuiltinFunction)
RegisterFn registers a 'builtin function'
func TestGzipItem ¶
TODO: proper file checking (how to check validity?)
func TestGzipItems ¶
Types ¶
type Grep ¶
type Grep struct { IsPerl bool IsExtended bool // TODO extended is true by default IsIgnoreCase bool IsInvertMatch bool IsPrintFilename bool // TODO filename is true by default IsPrintLineNumber bool IsRecurse bool IsQuiet bool // TODO LinesBefore int // TODO LinesAfter int // TODO LinesAround int // TODO // contains filtered or unexported fields }
Grep represents and performs a `grep` invocation
type Gzip ¶
type Gzip struct { IsKeep bool IsStdout bool Filenames []string // contains filtered or unexported fields }
Gzip represents and performs `gz` invocations
type Head ¶
type Head struct { Filenames []string // contains filtered or unexported fields }
Head represents and performs a `head` invocation
type Ls ¶
type Ls struct { LongList bool Recursive bool Human bool AllFiles bool OnePerLine bool Stdin bool Filenames []string // contains filtered or unexported fields }
Ls represents and performs a `ls` invocation
type Sleep ¶
type Sleep struct {
// contains filtered or unexported fields
}
Sleep represents and performs a `sleep` invocation
type Tail ¶
type Tail struct { Lines int64 FollowByDescriptor bool //TODO FollowByName bool SleepInterval float64 Filenames []string }
Tail represents and performs a `tail` invocation
type Tee ¶
type Tee struct {
// contains filtered or unexported fields
}
Tee represents and performs a `tee` invocation
Click to show internal directories.
Click to hide internal directories.