// 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"github.com/gitpod-io/gitpod/common-go/log"8"github.com/gitpod-io/gitpod/ide-service/pkg/server"9"github.com/spf13/cobra"10)1112func init() {13rootCmd.AddCommand(runCommand)14}1516var runCommand = &cobra.Command{17Use: "run",18Short: "Starts the service",19Version: Version,20Run: func(cmd *cobra.Command, args []string) {21cfg := getConfig()22if err := server.Start(log.Log, cfg); err != nil {23log.WithError(err).Fatal("cannot start server")24}25},26}272829