cmd

package
v0.0.0-...-40e2893 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "pewpew",
	Short: "HTTP load tester for performance and stress testing",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		runtime.GOMAXPROCS(viper.GetInt("cpu"))
		if viper.GetBool("verbose") && viper.GetBool("quiet") {
			fmt.Println("Both verbose and quiet enabled, disabling verbose")
			viper.Set("verbose", false)
		}
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute runs the RootCmd and terminates the program if there is an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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