cmd

package
v0.2201.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Overview

Package cmd implements the commands for the test-runner executable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute spawns the main entry point after handing the config file.

func Register

func Register(s scenario.Scenario) error

Register adds a scenario to the runner and the default scenarios list.

func RegisterNondefault

func RegisterNondefault(s scenario.Scenario) error

RegisterNondefault adds a scenario to the runner.

func RegisterScenarioParams

func RegisterScenarioParams(name string, p *env.ParameterFlagSet)

RegisterScenarioParams registers parameters for a given scenario as string slices regardless of actual type.

Later we combine specific parameter sets and execute scenarios with all parameter combinations.

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the root command's structure that will be executed, so that it can be used to alter the configuration and flags of the command.

Note: `Run` is pre-initialized to the main entry point of the test harness, and should likely be left un-altered.

Types

This section is empty.

Directories

Path Synopsis
Package common contains common constants and variables.
Package common contains common constants and variables.

Jump to

Keyboard shortcuts

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