mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/checkpointsync"
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/db"
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/deprecated"
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/p2p"
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet"
|
|
"github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/validator"
|
|
"github.com/prysmaticlabs/prysm/v4/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, validator.Commands...)
|
|
}
|