cmd

package
v0.5.1-fix-pfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(fsets ...*flag.FlagSet) *cobra.Command

Init constructs a CLI command to initialize Celestia Node of any type with the given flags.

func MiscFlags added in v0.2.0

func MiscFlags() *flag.FlagSet

MiscFlags gives a set of hardcoded miscellaneous flags.

func Network added in v0.5.0

func Network(ctx context.Context) p2p.Network

Network reads the node type from the context.

func NodeConfig added in v0.4.0

func NodeConfig(ctx context.Context) nodebuilder.Config

NodeConfig reads the node config from the context.

func NodeFlags added in v0.2.0

func NodeFlags() *flag.FlagSet

NodeFlags gives a set of hardcoded Node package flags.

func NodeOptions added in v0.3.0

func NodeOptions(ctx context.Context) []fx.Option

NodeOptions returns config options parsed from Environment(Flags, ENV vars, etc)

func NodeType added in v0.3.0

func NodeType(ctx context.Context) node.Type

NodeType reads the node type from the context.

func ParseMiscFlags added in v0.2.0

func ParseMiscFlags(ctx context.Context, cmd *cobra.Command) (context.Context, error)

ParseMiscFlags parses miscellaneous flags from the given cmd and applies values to Env.

func ParseNodeFlags added in v0.2.0

func ParseNodeFlags(ctx context.Context, cmd *cobra.Command, network p2p.Network) (context.Context, error)

ParseNodeFlags parses Node flags from the given cmd and applies values to Env.

func Start

func Start(fsets ...*flag.FlagSet) *cobra.Command

Start constructs a CLI command to start Celestia Node daemon of any type with the given flags.

func StorePath added in v0.3.0

func StorePath(ctx context.Context) string

StorePath reads the store path from the context.

func WithNetwork added in v0.5.0

func WithNetwork(ctx context.Context, network p2p.Network) context.Context

WithNetwork sets the network in the given context.

func WithNodeConfig added in v0.4.0

func WithNodeConfig(ctx context.Context, config *nodebuilder.Config) context.Context

WithNodeConfig sets the node config in the Env.

func WithNodeOptions added in v0.3.0

func WithNodeOptions(ctx context.Context, opts ...fx.Option) context.Context

WithNodeOptions add new options to Env.

func WithNodeType added in v0.3.0

func WithNodeType(ctx context.Context, tp node.Type) context.Context

WithNodeType sets the node type in the given context.

func WithStorePath added in v0.3.0

func WithStorePath(ctx context.Context, storePath string) context.Context

WithStorePath sets Store Path in the given context.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL