targets

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:    "target",
	Aliases: []string{"targets"},
	Usage:   "Pretty print query output",
	Action:  execute,
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:   "nocolor",
			Usage:  "Suppress colorized output",
			EnvVar: "BZL_TARGET_NO_COLOR",
		},
		cli.StringSliceFlag{
			Name:   "sort",
			Usage:  `Sort by field kind|label`,
			EnvVar: "BZL_TARGET_SORT",
			Value: &cli.StringSlice{
				"kind",
			},
		},
		cli.StringSliceFlag{
			Name:   "include",
			Usage:  `String that an entry must have in label|kind`,
			EnvVar: "BZL_TARGET_INCLUDE",
		},
		cli.StringFlag{
			Name:   "align",
			Usage:  `Align output by ws|root|pkg`,
			EnvVar: "BZL_TARGET_ALIGN",
			Value:  "root",
		},
	},
}

Functions

This section is empty.

Types

type ByKind added in v0.1.6

type ByKind []*target

func (ByKind) Len added in v0.1.6

func (a ByKind) Len() int

func (ByKind) Less added in v0.1.6

func (a ByKind) Less(i, j int) bool

func (ByKind) Swap added in v0.1.6

func (a ByKind) Swap(i, j int)

type ByLabel added in v0.1.6

type ByLabel []*target

func (ByLabel) Len added in v0.1.6

func (a ByLabel) Len() int

func (ByLabel) Less added in v0.1.6

func (a ByLabel) Less(i, j int) bool

func (ByLabel) Swap added in v0.1.6

func (a ByLabel) Swap(i, j int)

Jump to

Keyboard shortcuts

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