prysm-pulse/cmd/prysmctl/main.go
Raul Jordan 20ed47a107
Add a Generate Genesis State Command to Prysmctl (#11259)
* genesis tool

* done with tool

* delete old tool

* no fatal

* fix up

* Update cmd/prysmctl/testnet/generate_genesis.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* radek feedback

* more feedback

* required

* fix up

* gaz

* radek feedback

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-19 09:26:25 +00:00

30 lines
648 B
Go

package main
import (
"os"
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/checkpoint"
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/p2p"
"github.com/prysmaticlabs/prysm/v3/cmd/prysmctl/testnet"
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() {
prysmctlCommands = append(prysmctlCommands, checkpoint.Commands...)
prysmctlCommands = append(prysmctlCommands, testnet.Commands...)
prysmctlCommands = append(prysmctlCommands, p2p.Commands...)
}