// Copyright (c) 2022 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/gitpod-io/gitpod/gp-gcloud/cmd/compute"11"github.com/spf13/cobra"12)1314// rootCmd represents the base command when called without any subcommands15var rootCmd = &cobra.Command{16Use: "gp-gcloud",17Short: "Gcloud wrapper for internal gitpod usage",18Args: cobra.MinimumNArgs(1),19}2021// Execute adds all child commands to the root command and sets flags appropriately.22// This is called by main.main(). It only needs to happen once to the rootCmd.23func Execute() {24if err := rootCmd.Execute(); err != nil {25fmt.Println(err)26os.Exit(1)27}28}2930func init() {31rootCmd.AddCommand(compute.NewCommand())32}333435