internalcmds

package
Version: 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 DutStableVersion = &subcommands.Command{
	UsageLine: "stable-version HOSTNAME",
	ShortDesc: "Stable versions for DUT",
	LongDesc: `Stable versions for DUT.

For internal use only.`,
	CommandRun: func() subcommands.CommandRun {
		c := &dutStableVersionRun{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)
		return c
	},
}

DutStableVersion subcommand: Stable versions for DUT.

View Source
var WaitTask = &subcommands.Command{
	UsageLine: "wait-task [FLAGS...] TASK_ID",
	ShortDesc: "wait for a task to complete",
	LongDesc: `Wait for the tasks with the given Buildbucket build id to complete, and summarize its results.
Only tasks created via the skylab tool are supported`,
	CommandRun: func() subcommands.CommandRun {
		c := &waitTaskRun{}
		c.authFlags.Register(&c.Flags, site.DefaultAuthOptions)
		c.envFlags.Register(&c.Flags)

		c.Flags.IntVar(&c.timeoutMins, "timeout-mins", -1, "The maxinum number of minutes to wait for the task to finish. Default: no timeout.")
		// TODO: Delete this flag entirely.
		// There should be no users of this flag now, but remove in own CL for
		// easy revert.
		var unused bool
		c.Flags.BoolVar(&unused, "bb", true, "Deprecated. Has no effect.")
		return c
	},
}

WaitTask subcommand: wait for a task to finish.

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