2020-02-09 10:31:52 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-08-19 11:46:20 +00:00
|
|
|
"fmt"
|
2020-02-09 10:31:52 +00:00
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/ledgerwatch/turbo-geth/cmd/restapi/commands"
|
2020-08-19 11:46:20 +00:00
|
|
|
"github.com/ledgerwatch/turbo-geth/cmd/utils"
|
2020-02-09 10:31:52 +00:00
|
|
|
"github.com/ledgerwatch/turbo-geth/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-08-19 11:46:20 +00:00
|
|
|
log.SetupDefaultTerminalLogger(log.LvlInfo, "", "")
|
2020-02-09 10:31:52 +00:00
|
|
|
|
2020-08-19 11:46:20 +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
|
|
|
}
|
|
|
|
}
|