# Packages
This code was adapted from https://github.com/ethereum/go-ethereum/blob/master/cmd/geth/usage.go.
This code was adapted from https://github.com/ethereum/go-ethereum/blob/master/cmd/geth/usage.go.
Package mock_cmd is a generated GoMock package.
This code was adapted from https://github.com/ethereum/go-ethereum/blob/master/cmd/geth/usage.go.
# Functions
ConfigureBeaconChain sets the global config based on what flags are enabled for the beacon-chain client.
ConfigureValidator sets the global config based on what flags are enabled for the validator client.
ConfirmAction uses the passed in actionText as the confirmation text displayed in the terminal.
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
EnterPassword queries the user for their password through the terminal, in order to make sure it is not passed in a visible way to the terminal.
ExpandSingleEndpointIfFile expands the path for --execution-provider if specified as a file.
FixDefaultDataDir checks if previous data directory is found and can be migrated to a new path.
Get retrieves feature config.
Init sets the global config equal to the config that is passed in.
InitWithReset sets the global config and returns function that is used to reset configuration.
LoadFlagsFromConfig sets flags values from config file if ConfigFileFlag is set.
ValidateNoArgs insures that the application is not run with erroneous arguments or flags.
WrapFlags so that they can be loaded from alternative sources.
# Variables
AcceptTosFlag specifies user acceptance of ToS for non-interactive environments.
ApiTimeoutFlag specifies the timeout value for API requests in seconds.
BackupWebhookOutputDir to customize the output directory for db backups.
BootstrapNode tells the beacon node which bootstrap node to connect to.
ChainConfigFileFlag specifies the filepath to load flag values.
ClearDB prompts user to see if they want to remove any previously stored data at the data directory.
ConfigFileFlag specifies the filepath to load flag values.
DataDirFlag defines a path on disk where Prysm databases are stored.
DisableMonitoringFlag defines a flag to disable the metrics collection.
E2EConfigFlag declares to use a testing specific config for running Ethereum consensus in end-to-end testing.
EnableBackupWebhookFlag for users to trigger db backups via an HTTP webhook.
EnableTracingFlag defines a flag to enable p2p message tracing.
EnableUPnPFlag specifies if UPnP should be enabled or not.
ForceClearDB removes any previously stored data at the data directory.
GrpcMaxCallRecvMsgSizeFlag defines the max call message size for GRPC.
JwtOutputFileFlag specifies the JWT file path that gets generated into when invoked by generate-jwt-secret.
LogFileName specifies the log output file name.
LogFormat specifies the log output format.
MaxGoroutines specifies the maximum amount of goroutines tolerated, before a status check fails.
MinimalConfigFlag declares to use the minimal config for running Ethereum consensus.
MonitoringHostFlag defines the host used to serve prometheus metrics.
NoDiscovery specifies whether we are running a local network and have no need for connecting to the bootstrap nodes in the cloud.
P2PAllowList defines a CIDR subnet to exclusively allow connections.
P2PDenyList defines a list of CIDR subnets to disallow connections from them.
P2PHost defines the host IP to be used by libp2p.
P2PHostDNS defines the host DNS to be used by libp2p.
P2PIP defines the local IP to be used by libp2p.
P2PMaxPeers defines a flag to specify the max number of peers in libp2p.
P2PMetadata defines a flag to specify the location of the peer metadata file.
P2PPrivKey defines a flag to specify the location of the private key file for libp2p.
P2PQUICPort defines the QUIC port to be used by libp2p.
P2PTCPPort defines the TCP port to be used by libp2p.
P2PUDPPort defines the port to be used by discv5.
RelayNode tells the beacon node which relay node to connect to.
RestoreSourceFileFlag specifies the filepath to the backed-up database file which will be used to restore the database.
RestoreTargetDirFlag specifies the target directory of the restored database.
RPCMaxPageSizeFlag defines the maximum numbers per page returned in RPC responses from this beacon node (default: 500).
StaticPeers specifies a set of peers to connect to explicitly.
TraceSampleFractionFlag defines a flag to indicate what fraction of p2p messages are sampled for tracing.
TracingEndpointFlag flag defines the http endpoint for serving traces to Jaeger.
TracingProcessNameFlag defines a flag to specify a process name.
ValidatorMonitorIndicesFlag specifies a list of validator indices to track for performance updates.
VerbosityFlag defines the logrus configuration.
# Structs
Flags is a struct to represent which features the client will perform on runtime.
StdInPasswordReader reads a password from stdin.
# Interfaces
PasswordReader reads a password from a mock or stdin.