package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Functions
GetBoolFlagValue get the bool value for the given BoolFlag from the local flags of the cobra command.
GetBoolPersistentFlagValue get the bool value for the given BoolFlag from the persistent flags of the given cobra command.
GetIntFlagValue get the int value for the given IntFlag from the local flags of the cobra command.
GetIntPersistentFlagValue get the int value for the given IntFlag from the persistent flags of the cobra command.
GetIntSliceFlagValue get the int slice value for the given IntSliceFlag from the local flags of the cobra command.
GetIntSlicePersistentFlagValue get the int slice value for the given IntSliceFlag from the persistent flags of the cobra command.
GetStringFlagValue get the string value for the given StringFlag from the local flags of the cobra command.
GetStringPersistentFlagValue get the string value for the given StringFlag from the persistent flags of the cobra command.
GetStringSliceFlagValue get the string slice value for the given StringSliceFlag from the local flags of the cobra command.
GetStringSlicePersistentFlagValue get the string slice value for the given StringSliceFlag from the persistent flags of the cobra command.
HasFlagsChanged returns whether any of the flags is set by user in the command.
IsFlagChanged returns whether the flag has been changed in command.
RegisterFlags register the flags to command's local flag.
RegisterPFlags register the flags to command's persistent flag.
SetParseErrorHandle set the error handle function used for cli parsing flags.
# Structs
BoolFlag is the flag with boolean value.
IntFlag is the flag with int value.
IntSliceFlag is the flag with int slice value.
StringFlag is the flag with string value.
StringSliceFlag is the flag with string slice value.
# Interfaces
Flag is the interface for cli flags.