config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aws

func Aws()

Aws - checks that AWS creds exist

func Commands

func Commands(options *Options)

Commands - parse for commands and groups

func Defaults

func Defaults(options *Options)

Defaults - returns the options with defaults set

func EnvVars

func EnvVars(options *Options)

EnvVars - Sets the value if the environment variable exists

func Flags

func Flags(options *Options)

Flags - pull all of the flagged cli's

func Saved

func Saved(options *Options)

Saved - loads any saved configs by gets

func Validate

func Validate(options *Options)

Types

type Options

type Options struct {

	// filter options
	Filter    string
	Stream    string
	StartTime int64
	EndTime   int64
	Number    int64
	Chunk     int64
	Tail      bool

	// display options
	TimeZone     bool   `json:"time_zone"`
	Spacing      bool   `json:"spacing"`
	NoGroup      bool   `json:"no_group"`
	NoStream     bool   `json:"no_stream"`
	NoTime       bool   `json:"no_time"`
	NoColor      bool   `json:"no_color"`
	NoWrap       bool   `json:"no_wrap"`
	StreamLTrim  int    `json:"stream_ltrim"`
	StreamRTrim  int    `json:"stream_rtrim"`
	MessageLTrim int    `json:"message_ltrim"`
	MessageRTrim int    `json:"message_rtrim"`
	MultiLine    bool   `json:"multi_line"`
	DateFormat   string `json:"date_format"`
	Green        string `json:"green"`
	Yellow       string `json:"yellow"`
	Red          string `json:"red"`

	// advanced options
	Command string
	Group   string
	Refresh int
	Stats   bool
	Debug   bool

	// stats
	Timer int64
}

type SavedOptions

type SavedOptions map[string]Options

Jump to

Keyboard shortcuts

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