-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.go
More file actions
35 lines (29 loc) · 744 Bytes
/
main.go
File metadata and controls
35 lines (29 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import (
"os"
"github.com/onflow/flow-evm-gateway/cmd/blocks"
"github.com/onflow/flow-evm-gateway/cmd/export"
"github.com/onflow/flow-evm-gateway/cmd/load_test"
"github.com/onflow/flow-evm-gateway/cmd/run"
"github.com/onflow/flow-evm-gateway/cmd/version"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "",
Short: "Utility commands for the EVM Gateway Node",
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
log.Err(err).Msg("failed to run command")
os.Exit(1)
}
}
func main() {
rootCmd.AddCommand(version.Cmd)
rootCmd.AddCommand(export.Cmd)
rootCmd.AddCommand(blocks.Cmd)
rootCmd.AddCommand(run.Cmd)
rootCmd.AddCommand(load_test.Cmd)
Execute()
}