Documentation ¶
Index ¶
- func CoreFlags() *flag.FlagSet
- func HeadersFlags() *flag.FlagSet
- func Init(fsets ...*flag.FlagSet) *cobra.Command
- func MiscFlags() *flag.FlagSet
- func NodeFlags(tp node.Type) *flag.FlagSet
- func P2PFlags() *flag.FlagSet
- func ParseCoreFlags(cmd *cobra.Command, env *Env) error
- func ParseHeadersFlags(cmd *cobra.Command, env *Env) error
- func ParseMiscFlags(cmd *cobra.Command) error
- func ParseNodeFlags(cmd *cobra.Command, env *Env) error
- func ParseP2PFlags(cmd *cobra.Command, env *Env) error
- func ParseTrustedHashFlags(cmd *cobra.Command, env *Env) error
- func ParseTrustedPeerFlags(cmd *cobra.Command, env *Env) error
- func Start(fsets ...*flag.FlagSet) *cobra.Command
- func TrustedHashFlags() *flag.FlagSet
- func TrustedPeerFlags() *flag.FlagSet
- func WithEnv(ctx context.Context) context.Context
- type Env
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadersFlags ¶ added in v0.2.0
HeadersFlags gives a set of hardcoded Header package flags.
func Init ¶
Init constructs a CLI command to initialize Celestia Node of any type with the given flags.
func ParseCoreFlags ¶ added in v0.2.0
ParseCoreFlags parses Core flags from the given cmd and applies values to Env.
func ParseHeadersFlags ¶ added in v0.2.0
ParseHeadersFlags parses Header package flags from the given cmd and applies values to Env.
func ParseMiscFlags ¶ added in v0.2.0
ParseMiscFlags parses miscellaneous flags from the given cmd and applies values to Env.
func ParseNodeFlags ¶ added in v0.2.0
ParseNodeFlags parses Node flags from the given cmd and applies values to Env.
func ParseP2PFlags ¶ added in v0.2.0
ParseP2PFlags parses P2P flags from the given cmd and applies values to Env.
func ParseTrustedHashFlags ¶ added in v0.2.0
ParseHeadersFlags parses Header package flags from the given cmd and applies values to Env.
func ParseTrustedPeerFlags ¶ added in v0.2.0
ParseTrustedPeerFlags parses Header package flags from the given cmd and applies values to Env.
func Start ¶
Start constructs a CLI command to start Celestia Node daemon of any type with the given flags.
func TrustedHashFlags ¶ added in v0.2.0
TrustedHashFlags returns a set of flags related to configuring a `TrustedHash`.
func TrustedPeerFlags ¶ added in v0.2.0
TrustedPeerFlags returns a set of flags related to configuring a `TrustedPeer`.
Types ¶
type Env ¶ added in v0.2.0
Env is an environment for CLI commands. It can be used to: 1. Propagate values from parent to child commands. 2. To group common logic that multiple commands rely on. Usage can be extended.
func (*Env) AddOptions ¶ added in v0.2.0
AddOptions add new options to Env.
func (*Env) Options ¶ added in v0.2.0
Options returns Node Options parsed from Environment(Flags, ENV vars, etc)
func (*Env) SetNodeType ¶ added in v0.2.0
SetNodeType sets Node Type to the Env.