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"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
"github.com/certusone/radiance/cmd/gossip/ping"
|
"github.com/certusone/radiance/cmd/radiance/blockstore"
|
||||||
"github.com/certusone/radiance/cmd/gossip/pull"
|
"github.com/certusone/radiance/cmd/radiance/gossip"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"k8s.io/klog/v2"
|
"k8s.io/klog/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cmd = cobra.Command{
|
var cmd = cobra.Command{
|
||||||
Use: "gossip",
|
Use: "radiance",
|
||||||
Short: "Interact with Solana gossip networks",
|
Short: "Solana Go playground",
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -24,8 +24,8 @@ func init() {
|
||||||
cmd.PersistentFlags().AddGoFlagSet(klogFlags)
|
cmd.PersistentFlags().AddGoFlagSet(klogFlags)
|
||||||
|
|
||||||
cmd.AddCommand(
|
cmd.AddCommand(
|
||||||
&ping.Cmd,
|
&blockstore.Cmd,
|
||||||
&pull.Cmd,
|
&gossip.Cmd,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue