cmd: merge to radiance command, add ledger subcommand

This commit is contained in:
Richard Patel 2022-09-10 13:25:22 +02:00
parent 2b138fbd4b
commit 46f6563f6d
5 changed files with 39 additions and 6 deletions

View File

@ -0,0 +1,14 @@
package blockstore
import (
"github.com/spf13/cobra"
)
var Cmd = cobra.Command{
Use: "blockstore",
Short: "Access blockstore database",
}
func init() {
Cmd.AddCommand()
}

View File

@ -0,0 +1,19 @@
package gossip
import (
"github.com/certusone/radiance/cmd/radiance/gossip/ping"
"github.com/certusone/radiance/cmd/radiance/gossip/pull"
"github.com/spf13/cobra"
)
var Cmd = cobra.Command{
Use: "gossip",
Short: "Interact with Solana gossip networks",
}
func init() {
Cmd.AddCommand(
&ping.Cmd,
&pull.Cmd,
)
}

View File

@ -7,15 +7,15 @@ import (
"os"
"os/signal"
"github.com/certusone/radiance/cmd/gossip/ping"
"github.com/certusone/radiance/cmd/gossip/pull"
"github.com/certusone/radiance/cmd/radiance/blockstore"
"github.com/certusone/radiance/cmd/radiance/gossip"
"github.com/spf13/cobra"
"k8s.io/klog/v2"
)
var cmd = cobra.Command{
Use: "gossip",
Short: "Interact with Solana gossip networks",
Use: "radiance",
Short: "Solana Go playground",
}
func init() {
@ -24,8 +24,8 @@ func init() {
cmd.PersistentFlags().AddGoFlagSet(klogFlags)
cmd.AddCommand(
&ping.Cmd,
&pull.Cmd,
&blockstore.Cmd,
&gossip.Cmd,
)
}