cmd: merge to radiance command, add ledger subcommand
This commit is contained in:
parent
2b138fbd4b
commit
46f6563f6d
|
@ -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()
|
||||
}
|
|
@ -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,
|
||||
)
|
||||
}
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue