mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
007c776d8a
* tool to query db by a key prefix * cleanup * lint and fmt * db/kv public visibility We've discussed before that Bazel visibility constraints don't accomplish much in go, so I'm phasing them out in places where they get in the way. * derp Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/checkpointsync"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/db"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/deprecated"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/p2p"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/signing"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/testnet"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/weaksubjectivity"
|
|
log "github.com/sirupsen/logrus"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
var prysmctlCommands []*cli.Command
|
|
|
|
func main() {
|
|
app := &cli.App{
|
|
Commands: prysmctlCommands,
|
|
}
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
// contains the old checkpoint sync subcommands. these commands should display help/warn messages
|
|
// pointing to their new locations
|
|
prysmctlCommands = append(prysmctlCommands, deprecated.Commands...)
|
|
|
|
prysmctlCommands = append(prysmctlCommands, checkpointsync.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, db.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, p2p.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, testnet.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, weaksubjectivity.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, signing.Commands...)
|
|
}
|