-
Notifications
You must be signed in to change notification settings - Fork 101
/
root.go
43 lines (36 loc) · 1.05 KB
/
root.go
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
42
43
// Copyright 2020 Snowfork
// SPDX-License-Identifier: LGPL-3.0-only
package cmd
import (
"os"
"github.com/snowfork/snowbridge/relayer/cmd/run"
"github.com/spf13/cobra"
)
var dataDir string
var configFile string
var rootCmd = &cobra.Command{
Use: "snowbridge-relay",
Short: "Snowbridge Relay is a bridge between Ethereum and Polkadot",
SilenceUsage: true,
}
func init() {
rootCmd.AddCommand(run.Command())
rootCmd.AddCommand(getBlockCmd())
//rootCmd.AddCommand(fetchMessagesCmd())
rootCmd.AddCommand(subBeefyCmd())
rootCmd.AddCommand(scanBeefyCmd())
rootCmd.AddCommand(leafCmd())
rootCmd.AddCommand(basicChannelLeafProofCmd())
rootCmd.AddCommand(parachainHeadProofCmd())
rootCmd.AddCommand(importExecutionHeaderCmd())
rootCmd.AddCommand(generateBeaconFixtureCmd())
rootCmd.AddCommand(generateBeaconCheckpointCmd())
rootCmd.AddCommand(generateExecutionUpdateCmd())
rootCmd.AddCommand(generateInboundFixtureCmd())
rootCmd.AddCommand(storeBeaconState())
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}