-
Notifications
You must be signed in to change notification settings - Fork 264
Expand file tree
/
Copy pathmain.go
More file actions
41 lines (32 loc) · 789 Bytes
/
main.go
File metadata and controls
41 lines (32 loc) · 789 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
36
37
38
39
40
41
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
rollcmd "github.com/evstack/ev-node/pkg/cmd"
"github.com/evstack/ev-node/pkg/config"
"github.com/evstack/ev-node/apps/evm/single/cmd"
)
func main() {
// Initiate the root command
rootCmd := &cobra.Command{
Use: "evm-single",
Short: "Evolve with EVM; single sequencer",
}
config.AddGlobalFlags(rootCmd, "evm-single")
// Add configuration flags to NetInfoCmd so it can read RPC address
config.AddFlags(rollcmd.NetInfoCmd)
rootCmd.AddCommand(
cmd.InitCmd(),
cmd.RunCmd,
rollcmd.VersionCmd,
rollcmd.NetInfoCmd,
rollcmd.StoreUnsafeCleanCmd,
rollcmd.KeysCmd(),
)
if err := rootCmd.Execute(); err != nil {
// Print to stderr and exit with error
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}