8 Star 16 Fork 10

Thoughtworks / gauge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gauge.go 653 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*----------------------------------------------------------------
* Copyright (c) ThoughtWorks, Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE in the project root for license information.
*----------------------------------------------------------------*/
package main
import (
"os"
"runtime/debug"
"github.com/getgauge/gauge/cmd"
"github.com/getgauge/gauge/logger"
)
func main() {
defer recoverPanic()
if err := cmd.Parse(); err != nil {
logger.Info(true, err.Error())
os.Exit(1)
}
}
func recoverPanic() {
if r := recover(); r != nil {
logger.Fatalf(true, "Error: %v\n%s", r, string(debug.Stack()))
}
}
Go
1
https://gitee.com/thoughtworks/gauge.git
git@gitee.com:thoughtworks/gauge.git
thoughtworks
gauge
gauge
master

搜索帮助