Manuel Alejandro de Brito Fontes f25de2cdbf Log error changing default level
2021-09-22 10:15:47 -03:00

32 lines
727 B
Go

// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
package cmd
import (
"fmt"
"os"
log "github.com/gitpod-io/gitpod/common-go/log"
"github.com/spf13/cobra"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "bob",
Short: "Bob is the in-workspace component of the image builder. You should never have to interact with it directly.",
}
// Execute runs the root command
func Execute() {
log.Init("bob", "", true, false)
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
func init() {
}