2017-05-17 14:34:13 +03:00
|
|
|
// +build go1.8
|
|
|
|
|
2013-04-09 08:53:13 +04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-09-11 00:08:48 +03:00
|
|
|
"os"
|
|
|
|
|
2014-02-10 20:22:36 +04:00
|
|
|
"github.com/github/hub/commands"
|
|
|
|
"github.com/github/hub/github"
|
2016-09-11 00:08:48 +03:00
|
|
|
"github.com/github/hub/ui"
|
2013-04-30 06:45:57 +04:00
|
|
|
)
|
2013-04-22 07:36:21 +04:00
|
|
|
|
2013-04-09 08:53:13 +04:00
|
|
|
func main() {
|
2014-01-05 04:48:52 +04:00
|
|
|
defer github.CaptureCrash()
|
|
|
|
|
2013-12-30 02:18:14 +04:00
|
|
|
err := commands.CmdRunner.Execute()
|
2016-09-11 00:08:48 +03:00
|
|
|
if !err.Ran {
|
|
|
|
ui.Errorln(err.Error())
|
|
|
|
}
|
2013-09-23 04:51:37 +04:00
|
|
|
os.Exit(err.ExitCode)
|
2013-05-24 02:21:18 +04:00
|
|
|
}
|