erigon-pulse/cmd/restapi/main.go

20 lines
375 B
Go
Raw Normal View History

2020-02-09 10:31:52 +00:00
package main
import (
"fmt"
2020-02-09 10:31:52 +00:00
"os"
"github.com/ledgerwatch/turbo-geth/cmd/restapi/commands"
"github.com/ledgerwatch/turbo-geth/cmd/utils"
2020-02-09 10:31:52 +00:00
"github.com/ledgerwatch/turbo-geth/log"
)
func main() {
log.SetupDefaultTerminalLogger(log.LvlInfo, "", "")
2020-02-09 10:31:52 +00:00
if err := commands.RootCommand().ExecuteContext(utils.RootContext()); err != nil {
fmt.Println(err)
os.Exit(1)
2020-02-09 10:31:52 +00:00
}
}