// Copyright (c) 2020 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package cmd56import (7"fmt"8"os"910"github.com/spf13/cobra"11)1213// rootCmd represents the base command when called without any subcommands14var rootCmd = &cobra.Command{15Use: "loadgen",16Short: "Generates load on Gitpod installation",17}1819// Execute adds all child commands to the root command and sets flags appropriately.20// This is called by main.main(). It only needs to happen once to the rootCmd.21func Execute() {22if err := rootCmd.Execute(); err != nil {23fmt.Println(err)24os.Exit(1)25}26}2728func init() {29rootCmd.PersistentFlags().BoolVar(&runOpts.Interactive, "interactive", false, "loadgen will prompt before destructive actions")30}313233