cmd

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metadata = &subcommands.Command{
	UsageLine: "metadata [FLAGS...] INPUT_FILE_GLOB [INPUT_FILE_GLOB...]",
	ShortDesc: "Lint Chrome OS test metadata specification.",
	LongDesc: `Lint a (complete) specification of a Chrome OS test metadata.

The test metadata must be specified as a metadata.Specification payload as
defined at
https://chromium.googlesource.com/chromiumos/config/+/refs/heads/master/proto/chromiumos/config/api/test/metadata/v1/metadata.proto

The lint includes some global uniqueness checks. Thus, validation may be
incomplete if a partial test metadata specification is provided as input.

The test metadata specification may be split over multiple files and
directories, provided via glob patterns in the positional arguments.`,
	CommandRun: func() subcommands.CommandRun {
		c := &metadataRun{}
		c.Flags.BoolVar(
			&c.binaryFormat,
			"binary",
			false,
			`Decode input protobuf payload from the binary wire format.
By default, input is assumed to be encoded as JSON.`,
		)
		return c
	},
}

Metadata subcommand: Lint test metadata.

View Source
var Plan = &subcommands.Command{
	UsageLine: "plan [FLAGS...] INPUT_FILE_GLOB [INPUT_FILE_GLOB...]",
	ShortDesc: "Lint Chrome OS test plan specification.",
	LongDesc: `Lint a (complete) specification of a Chrome OS test plan.

The test plan must be specified as a plan.Specification payload as defined at
https://chromium.googlesource.com/chromiumos/infra/proto/+/refs/heads/master/src/test/plan/v1/plan.proto

The lint includes some global uniqueness checks. Thus, validation may be
incomplete if a partial test plan specification is provided as input.

The test plan specification may be split over multiple files and directories,
provided via glob patterns in the positional arguments.`,
	CommandRun: func() subcommands.CommandRun {
		c := &planRun{}
		c.Flags.BoolVar(
			&c.binaryFormat,
			"binary",
			false,
			`Decode input protobuf payload from the binary wire format.
By default, input is assumed to be encoded as JSON.`,
		)
		return c
	},
}

Plan subcommand: Lint test plan.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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