Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddChromePlatformCmd = &subcommands.Command{ UsageLine: "platform", ShortDesc: "Add platform configuration for browser machine", LongDesc: cmdhelp.AddChromePlatformLongDesc, CommandRun: func() subcommands.CommandRun { c := &addChromePlatform{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.ChromePlatformFileText) c.Flags.BoolVar(&c.interactive, "i", false, "enable interactive mode for input") c.Flags.StringVar(&c.name, "name", "", "name of the platform") c.Flags.StringVar(&c.manufacturer, "manufacturer", "", "manufacturer name") c.Flags.StringVar(&c.tags, "tags", "", "comma separated tags") c.Flags.StringVar(&c.description, "desc", "", "description for the platform") return c }, }
AddChromePlatformCmd add ChromePlatform to the system.
View Source
var DeleteChromePlatformCmd = &subcommands.Command{ UsageLine: "platform", ShortDesc: "Delete platform configuration for browser machine", LongDesc: `Delete platform configuration for browser machine. Example: shivas delete platform {Platform Name} Deletes the given platform configuration.`, CommandRun: func() subcommands.CommandRun { c := &deleteChromePlatform{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) return c }, }
DeleteChromePlatformCmd delete ChromePlatform by given name.
View Source
var GetChromePlatformCmd = &subcommands.Command{ UsageLine: "platform ...", ShortDesc: "Get platform details by filters", LongDesc: `Get platform details by filters. Example: shivas get platform {name1} {name2} shivas get platform -man apple shivas get platform Gets the platform and prints the output in the user-specified format.`, CommandRun: func() subcommands.CommandRun { c := &getChromePlatform{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.outputFlags.Register(&c.Flags) c.Flags.IntVar(&c.pageSize, "n", 0, cmdhelp.ListPageSizeDesc) c.Flags.BoolVar(&c.keysOnly, "keys", false, cmdhelp.KeysOnlyText) c.Flags.Var(flag.StringSlice(&c.manufacturers), "man", "Name(s) of a manufacturer to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.tags), "tag", "Name(s) of a tag to filter by. Can be specified multiple times.") return c }, }
GetChromePlatformCmd get chrome platform by given name.
View Source
var UpdateChromePlatformCmd = &subcommands.Command{ UsageLine: "platform", ShortDesc: "Update platform configuration for browser machine", LongDesc: cmdhelp.UpdateChromePlatformLongDesc, CommandRun: func() subcommands.CommandRun { c := &updateChromePlatform{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.ChromePlatformFileText) c.Flags.BoolVar(&c.interactive, "i", false, "enable interactive mode for input") c.Flags.StringVar(&c.name, "name", "", "name of the platform") c.Flags.StringVar(&c.manufacturer, "manufacturer", "", "manufacturer name."+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.tags, "tags", "", "comma separated tags. You can only append/add new tags here. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.description, "desc", "", "description for the platform. "+cmdhelp.ClearFieldHelpText) return c }, }
UpdateChromePlatformCmd update ChromePlatform by given name.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.