2020-07-05 13:18:21 +07:00
|
|
|
package main
|
|
|
|
|
2020-08-19 18:46:20 +07:00
|
|
|
import (
|
|
|
|
"fmt"
|
2021-03-25 13:42:45 +07:00
|
|
|
"os"
|
|
|
|
|
2022-01-19 10:49:07 +07:00
|
|
|
"github.com/ledgerwatch/erigon-lib/common"
|
2021-05-21 01:25:53 +07:00
|
|
|
"github.com/ledgerwatch/erigon/cmd/integration/commands"
|
2020-08-19 18:46:20 +07:00
|
|
|
)
|
2020-07-05 13:18:21 +07:00
|
|
|
|
|
|
|
func main() {
|
2020-08-19 18:46:20 +07:00
|
|
|
rootCmd := commands.RootCommand()
|
2022-01-19 10:49:07 +07:00
|
|
|
ctx, _ := common.RootContext()
|
2020-07-05 13:18:21 +07:00
|
|
|
|
2021-04-26 13:39:34 +01:00
|
|
|
if err := rootCmd.ExecuteContext(ctx); err != nil {
|
2020-08-19 18:46:20 +07:00
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|