Documentation
¶
Overview ¶
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func AddRPCFlagToCmd(cmd *cobra.Command, app *application.Lux, rpc *string)
- func EnsureMutuallyExclusive(flags []bool) bool
- func ValidateRPC(app *application.Lux, rpc *string, cmd *cobra.Command, args []string) error
- func WithGroupedHelp(groups []GroupedFlags) func(cmd *cobra.Command, args []string)
- type BootstrapValidatorFlags
- type GroupedFlags
- func AddBootstrapValidatorFlagsToCmd(cmd *cobra.Command, bootstrapFlags *BootstrapValidatorFlags) GroupedFlags
- func AddLocalMachineFlagsToCmd(cmd *cobra.Command, localMachineFlags *LocalMachineFlags) GroupedFlags
- func AddProofOfStakeToCmd(cmd *cobra.Command, posFlags *POSFlags) GroupedFlags
- func AddSignatureAggregatorFlagsToCmd(cmd *cobra.Command, sigAggFlags *SignatureAggregatorFlags) GroupedFlags
- func RegisterFlagGroup(cmd *cobra.Command, groupName string, showFlag string, isAlwaysVisible bool, ...) GroupedFlags
- type LocalMachineFlags
- type POSFlags
- type SignatureAggregatorFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRPCFlagToCmd ¶
func AddRPCFlagToCmd(cmd *cobra.Command, app *application.Lux, rpc *string)
func EnsureMutuallyExclusive ¶
func ValidateRPC ¶
func WithGroupedHelp ¶
func WithGroupedHelp(groups []GroupedFlags) func(cmd *cobra.Command, args []string)
WithGroupedHelp returns a cobra Run function that shows help organized by groups. It first shows normal command usage, then prints grouped flags, hiding some unless explicitly requested.
Types ¶
type BootstrapValidatorFlags ¶
type GroupedFlags ¶
type GroupedFlags struct {
Name string
ShowFlag string
FlagSet *pflag.FlagSet
IsAlwaysVisible bool
}
func AddBootstrapValidatorFlagsToCmd ¶
func AddBootstrapValidatorFlagsToCmd(cmd *cobra.Command, bootstrapFlags *BootstrapValidatorFlags) GroupedFlags
func AddLocalMachineFlagsToCmd ¶
func AddLocalMachineFlagsToCmd(cmd *cobra.Command, localMachineFlags *LocalMachineFlags) GroupedFlags
func AddProofOfStakeToCmd ¶
func AddProofOfStakeToCmd(cmd *cobra.Command, posFlags *POSFlags) GroupedFlags
func AddSignatureAggregatorFlagsToCmd ¶
func AddSignatureAggregatorFlagsToCmd(cmd *cobra.Command, sigAggFlags *SignatureAggregatorFlags) GroupedFlags