cmd

package
v0.0.0-...-dde899a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndexRequiredFlag = RequiredFlag{
		cli.StringFlag{
			Name:   "index",
			Value:  "",
			EnvVar: "ELASTICO_INDEX",
		},
	}
	TypeRequiredFlag = RequiredFlag{
		cli.StringFlag{
			Name:   "type",
			Value:  "",
			EnvVar: "ELASTICO_TYPE",
		},
	}
	TemplateRequiredFlag = RequiredFlag{
		cli.StringFlag{
			Name:   "template",
			Value:  "",
			EnvVar: "",
		},
	}
	FieldRequiredFlag = RequiredFlag{
		cli.StringFlag{
			Name:  "field",
			Value: "",
		},
	}
	TypeFlag = cli.StringFlag{
		Name:  "type",
		Value: "",
	}

	FieldFlag = cli.StringFlag{
		Name:  "field",
		Value: "",
	}
)
View Source
var ErrTemplate = template.Must(template.New("").Funcs(funcMap).Parse(`Error: {{ .Error }}
`))
View Source
var IndexFlag = cli.StringFlag{
	Name:  "index",
	Value: "_all",
}

Functions

func Pad

func Pad(v string, count int) string

func Required

func Required(flag cli.Flag) cli.Flag

Types

type App

type App struct {
	*cli.App
}

func NewApp

func NewApp() *App

type RequiredFlag

type RequiredFlag struct {
	cli.Flag
}

func (RequiredFlag) Required

func (rsf RequiredFlag) Required() bool

Jump to

Keyboard shortcuts

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