-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathrun.go
More file actions
30 lines (26 loc) · 884 Bytes
/
run.go
File metadata and controls
30 lines (26 loc) · 884 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
package run
import (
"github.com/snowfork/snowbridge/relayer/cmd/run/beacon"
beaconstate "github.com/snowfork/snowbridge/relayer/cmd/run/beacon-state"
"github.com/snowfork/snowbridge/relayer/cmd/run/beefy"
"github.com/snowfork/snowbridge/relayer/cmd/run/execution"
"github.com/snowfork/snowbridge/relayer/cmd/run/fisherman"
"github.com/snowfork/snowbridge/relayer/cmd/run/parachain"
"github.com/snowfork/snowbridge/relayer/cmd/run/reward"
"github.com/spf13/cobra"
)
func Command() *cobra.Command {
cmd := &cobra.Command{
Use: "run",
Short: "Start a relay service",
Args: cobra.MinimumNArgs(1),
}
cmd.AddCommand(beefy.Command())
cmd.AddCommand(parachain.Command())
cmd.AddCommand(beacon.Command())
cmd.AddCommand(beaconstate.Command())
cmd.AddCommand(execution.Command())
cmd.AddCommand(reward.Command())
cmd.AddCommand(fisherman.Command())
return cmd
}