ipld-eth-beacon-indexer/cmd/capture.go
Abdul Rabbani d7ad4108a7 Code clean up + Beacon Chain Connection
This concludes all the code needed to connect to the DB and beacon node. We will no longer reference the lighthouse client because this application should work interchangeably with any beacon node.

I have also standardized logging.
2022-04-20 18:12:44 -04:00

34 lines
998 B
Go

/*
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
"github.com/spf13/cobra"
)
// captureCmd represents the capture command
var captureCmd = &cobra.Command{
Use: "capture",
Short: "Capture the SignedBeaconBlocks and BeaconStates from the Beacon Chain",
Long: `Capture SignedBeaconBlocks and BeaconStates from the Beacon Chain.
These blocks and states will be captured in
Postgres. They require a beacon client to be connected. You can run this to
capture blocks and states at head or historic blocks.`,
}
func init() {
rootCmd.AddCommand(captureCmd)
// Here you will define your flags and configuration settings.
// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// captureCmd.PersistentFlags().String("foo", "", "A help for foo")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// captureCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}