// 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"context"8"os"910"github.com/gitpod-io/gitpod/common-go/log"11"github.com/spf13/cobra"12)1314var (15// ServiceName is the name we use for tracing/logging16ServiceName = "usage"17// Version of this service - set during build18Version = ""19)2021// rootCmd represents the base command when called without any subcommands22var rootCmd = &cobra.Command{23Use: ServiceName,24Short: "Usage service & controller",25}2627func Execute() {28if err := rootCmd.ExecuteContext(context.Background()); err != nil {29log.WithError(err).Error("Failed to execute command.")30os.Exit(1)31}32}333435