mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
26 lines
621 B
Go
26 lines
621 B
Go
// Copyright (c) 2022 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 main
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
|
|
"github.com/gitpod-io/gitpod/previewctl/cmd"
|
|
)
|
|
|
|
func main() {
|
|
logger := logrus.New()
|
|
logger.SetFormatter(&logrus.TextFormatter{
|
|
DisableColors: true,
|
|
FullTimestamp: true,
|
|
TimestampFormat: "2006-01-02 15:04:05",
|
|
})
|
|
|
|
root := cmd.NewRootCmd(logger)
|
|
if err := root.Execute(); err != nil {
|
|
logger.WithFields(logrus.Fields{"err": err}).Fatal("command failed.")
|
|
}
|
|
}
|