cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigFilename is the forge config file without extension
	ConfigFilename = ".stormforger"
	// EnvPrefix is the prefix for environment configuration
	EnvPrefix = "stormforger"
)

Variables

View Source
var DatasourceCmd = &cobra.Command{
	Use:   "datasource",
	Short: "Work with and manage data sources",
	Long: `Work with and manage data sources.

  Currently only a rough validation is implemented.`,
	Run: func(cmd *cobra.Command, args []string) {
		log.Fatal("Cannot be run without subcommand, like validate!")
	},
}

DatasourceCmd is the cobra definition

View Source
var (
	// RootCmd represents the cobra root command
	RootCmd = &cobra.Command{
		Use:   "forge",
		Short: "Command line client to StormForger (https://stormforger.com)",
		Long: `The command line client "forge" to StormForger offers a interface
to the StormForger API and several convenience methods
to handle load and performance tests.

Happy Load Testing :)`,
	}
)
View Source
var TestRunCmd = &cobra.Command{
	Use:   "test-run",
	Short: "Work with and manage test runs",
	Long:  `Work with and manage test runs.`,
	Run: func(cmd *cobra.Command, args []string) {
		log.Fatal("Cannot be run without subcommand!")
	},
}

TestRunCmd is the cobra definition

Functions

func Execute

func Execute()

Execute is the entry function for cobra

func NewClient

func NewClient() *api.Client

NewClient initializes a new API Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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