mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
cac5d0f234
* giving commands more clear names per issue #11287 * mark the top-level help text for cpt deprecated Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/checkpointsync"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/deprecated"
|
|
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/p2p"
|
|
"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, p2p.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, testnet.Commands...)
|
|
prysmctlCommands = append(prysmctlCommands, weaksubjectivity.Commands...)
|
|
}
|