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