// 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"1112"github.com/gitpod-io/gitpod/common-go/log"13)1415// rootCmd represents the base command when called without any subcommands16var rootCmd = &cobra.Command{17Use: "workspacekit",18Short: "Prepares a container for running a Gitpod workspace",19}2021var (22// ServiceName is the name we use for tracing/logging23ServiceName = "workspacekit"24// Version of this service - set during build25Version = ""26)2728// Execute adds all child commands to the root command and sets flags appropriately.29// This is called by main.main(). It only needs to happen once to the rootCmd.30func Execute() {31log.Init(ServiceName, Version, true, false)3233if err := rootCmd.Execute(); err != nil {34fmt.Println(err)35os.Exit(1)36}37}383940