flags

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DurationFlags = []cli.Flag{
	cli.StringFlag{
		Name:  "start",
		Usage: "query start `TIME`",
	},
	cli.StringFlag{
		Name:  "end",
		Usage: "query end `TIME`",
	},
	cli.GenericFlag{
		Name:   "step",
		Hidden: true,
		Value: &model.StepEnumValue{
			Enum:     schema.AllStep,
			Default:  schema.StepMinute,
			Selected: schema.StepMinute,
		},
	},
}

DurationFlags are common flags that involves a duration, composed by a start time, an end time, and a step, which is commonly used in most of the commands

View Source
var InstanceServiceIDFlags = []cli.Flag{
	cli.StringFlag{
		Name:  "service-id",
		Usage: "query service `ID` (priority over \"--service-name\")",
	},
	cli.StringFlag{
		Name:  "service-name",
		Usage: "query service `Name`",
	},
}
View Source
var SearchRegexFlags = []cli.Flag{
	cli.StringFlag{
		Name:     "regex",
		Required: true,
		Usage:    "search `Regex`",
	},
}

Functions

func Flags

func Flags(flags ...[]cli.Flag) []cli.Flag

Flags concatenates the `flags` into one []cli.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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